mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Adding an example for kubectl plugin list
This commit is contained in:
parent
806e38aeb7
commit
f5612f100e
@ -43,6 +43,10 @@ var (
|
|||||||
The easiest way to discover and install plugins is via the kubernetes sub-project krew.
|
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/)`))
|
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(`
|
pluginListLong = templates.LongDesc(i18n.T(`
|
||||||
List all available plugin files on a user's PATH.
|
List all available plugin files on a user's PATH.
|
||||||
|
|
||||||
@ -86,9 +90,10 @@ func NewCmdPluginList(streams genericclioptions.IOStreams) *cobra.Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "list",
|
Use: "list",
|
||||||
Short: i18n.T("List all visible plugin executables on a user's PATH"),
|
Short: i18n.T("List all visible plugin executables on a user's PATH"),
|
||||||
Long: pluginListLong,
|
Example: pluginExample,
|
||||||
|
Long: pluginListLong,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
cmdutil.CheckErr(o.Complete(cmd))
|
cmdutil.CheckErr(o.Complete(cmd))
|
||||||
cmdutil.CheckErr(o.Run())
|
cmdutil.CheckErr(o.Run())
|
||||||
|
Loading…
Reference in New Issue
Block a user