Adding an example for kubectl plugin list

This commit is contained in:
Andrea Hoffer 2021-11-22 13:21:21 -05:00
parent 806e38aeb7
commit f5612f100e

View File

@ -43,6 +43,10 @@ var (
The easiest way to discover and install plugins is via the kubernetes sub-project krew.
To install krew, visit [krew.sigs.k8s.io](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)`))
pluginExample = templates.Examples(i18n.T(`
# List all available plugins
kubectl plugin list`))
pluginListLong = templates.LongDesc(i18n.T(`
List all available plugin files on a user's PATH.
@ -86,9 +90,10 @@ func NewCmdPluginList(streams genericclioptions.IOStreams) *cobra.Command {
}
cmd := &cobra.Command{
Use: "list",
Short: i18n.T("List all visible plugin executables on a user's PATH"),
Long: pluginListLong,
Use: "list",
Short: i18n.T("List all visible plugin executables on a user's PATH"),
Example: pluginExample,
Long: pluginListLong,
Run: func(cmd *cobra.Command, args []string) {
cmdutil.CheckErr(o.Complete(cmd))
cmdutil.CheckErr(o.Run())