code: def config_(name: str, local: bool, package: str, section: str,
              key: Optional[str]):
      
      cfg = config.read_configs(package, name, local=local)
      if key:
          with suppress(NoOptionError, NoSectionError):
              echo(cfg.get(section, key))
      else:
          with suppress(NoSectionError):
              for opt in cfg.options(section):
                  colourise.pinfo(opt)
                  echo('    {}'.format(cfg.get(section, opt)))
docs: Extract or list values from config.