Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-2100

tkn should list installed plugins in command output

XMLWordPrintable

    • False
    • None
    • False

      Currently, tkn output does not list installed plugins.

      $ tkn 
      CLI for tekton pipelines
      
      Usage:
      tkn [flags]
      tkn [command]
      
      Available Commands:
        bundle                Manage Tekton Bundles
        chain                 Manage Chains
      ...
      ...
      
      Other Commands:
        completion            Prints shell completion scripts
        version               Prints version information
      
      Flags:
        -h, --help   help for tkn
      
      Use "tkn [command] --help" for more information about a command.
      

      If there is a plugin installed like `tkn-pac` then it's not listed.
      This is a problem because an end user does not know that `tkn-pac` is a plugin and they'd expect the `pac` subcommand to be present in the `tkn` output above. They would think that `pac` is not present in their version of `tkn` and might not use it. This is a big discoverability problem.

      As a solution, I'd expect the following output:

      $ tkn 
      CLI for tekton pipelines
      
      Usage:
      tkn [flags]
      tkn [command]
      
      Available Commands:
        bundle                Manage Tekton Bundles
        chain                 Manage Chains
      ...
      ...
      
      Available Plugins:
        pac                Manage Pipelines as Code
      
      Other Commands:
        completion            Prints shell completion scripts
        version               Prints version information
      
      Flags:
        -h, --help   help for tkn
      
      Use "tkn [command] --help" for more information about a command.
      

      Something like `tkn plugins list` will also be helpful, but it does not fix the discoverability issue - even though it's important and can be a side effect of this issue.

            Unassigned Unassigned
            concaf Shubham Minglani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: