original_docstring: 
      Display Meltano or plugin configuration.
  
      Read more at https://meltano.com/docs/command-line-interface.html#config
      
docstring: Display Meltano or plugin configuration.
docstring_tokens: Display Meltano or plugin configuration .
code: def config(  # noqa: WPS231
      ctx,
      project: Project,
      plugin_type: str,
      plugin_name: str,
      config_format: str,
      extras: bool,
  ):
      """
      Display Meltano or plugin configuration.
  
      Read more at https://meltano.com/docs/command-line-interface.html#config
      """
      plugin_type = PluginType.from_cli_argument(plugin_type) if plugin_type else None
  
      plugins_service = ProjectPluginsService(project)
  
      try:
          plugin = plugins_service.find_plugin(
              plugin_name, plugin_type=plugin_type, configurable=True
          )
      except PluginNotFoundError:
          if plugin_name == "meltano":
              plugin = None
          else:
              raise
  
      _, Session = project_engine(project)
      session = Session()
      try:
          if plugin:
              settings = PluginSettingsService(
                  project,
                  plugin,
                  plugins_service=plugins_service,
              )
              invoker = PluginInvoker(project, plugin)
              run_async(invoker.prepare(session))
          else:
              settings = ProjectSettingsService(
                  project, config_service=plugins_service.config_service
              )
              invoker = None
  
          ctx.obj["settings"] = settings
          ctx.obj["session"] = session
          ctx.obj["invoker"] = invoker
  
          if ctx.invoked_subcommand is None:
              if config_format == "json":
                  process = extras is not True
                  config = settings.as_dict(
                      extras=extras, process=process, session=session
                  )
                  print(json.dumps(config, indent=2))
              elif config_format == "env":
                  env = settings.as_env(extras=extras, session=session)
  
                  with tempfile.NamedTemporaryFile() as temp_dotenv:
                      path = temp_dotenv.name
                      for key, value in env.items():
                          dotenv.set_key(path, key, value)
  
                      dotenv_content = Path(temp_dotenv.name).read_text()
  
                  print(dotenv_content, end="")
      finally:
          session.close()
code_tokens: def config ( ctx , project : Project , plugin_type : str , plugin_name : str , config_format : str , extras : bool , ) : plugin_type = PluginType . from_cli_argument ( plugin_type ) if plugin_type else None plugins_service = ProjectPluginsService ( project ) try : plugin = plugins_service . find_plugin ( plugin_name , plugin_type = plugin_type , configurable = True ) except PluginNotFoundError : if plugin_name == "meltano" : plugin = None else : raise _ , Session = project_engine ( project ) session = Session ( ) try : if plugin : settings = PluginSettingsService ( project , plugin , plugins_service = plugins_service , ) invoker = PluginInvoker ( project , plugin ) run_async ( invoker . prepare ( session ) ) else : settings = ProjectSettingsService ( project , config_service = plugins_service . config_service ) invoker = None ctx . obj [ "settings" ] = settings ctx . obj [ "session" ] = session ctx . obj [ "invoker" ] = invoker if ctx . invoked_subcommand is None : if config_format == "json" : process = extras is not True config = settings . as_dict ( extras = extras , process = process , session = session ) print ( json . dumps ( config , indent = 2 ) ) elif config_format == "env" : env = settings . as_env ( extras = extras , session = session ) with tempfile . NamedTemporaryFile ( ) as temp_dotenv : path = temp_dotenv . name for key , value in env . items ( ) : dotenv . set_key ( path , key , value ) dotenv_content = Path ( temp_dotenv . name ) . read_text ( ) print ( dotenv_content , end = "" ) finally : session . close ( )
short_docstring: Display Meltano or plugin configuration.
short_docstring_tokens: Display Meltano or plugin configuration .
comment: # noqa: WPS231$SEP$"""
      Display Meltano or plugin configuration.
  
      Read more at https://meltano.com/docs/command-line-interface.html#config
      """