diff --git a/cmd/tk/env.go b/cmd/tk/env.go index be3ba32b1..f7c97e2c7 100644 --- a/cmd/tk/env.go +++ b/cmd/tk/env.go @@ -89,7 +89,7 @@ func envSetCmd() *cobra.Command { func envAddCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "add [path]", + Use: "add ", Short: "create a new environment", Args: cobra.ExactArgs(1), Annotations: map[string]string{ @@ -144,7 +144,7 @@ func addEnv(dir string, cfg *v1alpha1.Config) error { func envRemoveCmd() *cobra.Command { return &cobra.Command{ - Use: "remove [path]", + Use: "remove ", Aliases: []string{"rm"}, Short: "delete an environment", Annotations: map[string]string{ diff --git a/cmd/tk/jsonnet.go b/cmd/tk/jsonnet.go index d1bb6633e..0e2c9a7d9 100644 --- a/cmd/tk/jsonnet.go +++ b/cmd/tk/jsonnet.go @@ -14,7 +14,7 @@ import ( func evalCmd() *cobra.Command { cmd := &cobra.Command{ Short: "evaluate the jsonnet to json", - Use: "eval [path]", + Use: "eval ", Args: cobra.ExactArgs(1), Annotations: map[string]string{ "args": "baseDir", diff --git a/cmd/tk/tool.go b/cmd/tk/tool.go index b3bea6580..c223d9d27 100644 --- a/cmd/tk/tool.go +++ b/cmd/tk/tool.go @@ -19,7 +19,7 @@ import ( func toolCmd() *cobra.Command { cmd := &cobra.Command{ Short: "handy utilities for working with jsonnet", - Use: "tool", + Use: "tool [command]", } cmd.AddCommand(jpathCmd()) cmd.AddCommand(importsCmd()) @@ -51,7 +51,7 @@ func jpathCmd() *cobra.Command { func importsCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "imports [file]", + Use: "imports ", Short: "list all transitive imports of a file", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/tk/workflow.go b/cmd/tk/workflow.go index 75d6e642f..3d7287093 100644 --- a/cmd/tk/workflow.go +++ b/cmd/tk/workflow.go @@ -27,7 +27,7 @@ func workflowFlags(fs *pflag.FlagSet) *workflowFlagVars { func applyCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "apply [path]", + Use: "apply ", Short: "apply the configuration to the cluster", Args: cobra.ExactArgs(1), Annotations: map[string]string{ @@ -71,7 +71,7 @@ func diffCmd() *cobra.Command { cmp.Handlers.Add("diffStrategy", complete.PredictSet("native", "subset")) cmd := &cobra.Command{ - Use: "diff [path]", + Use: "diff ", Short: "differences between the configuration and the cluster", Args: cobra.ExactArgs(1), Annotations: map[string]string{ @@ -144,7 +144,7 @@ func diff(state []kubernetes.Manifest, pager bool, opts kubernetes.DiffOpts) (ch func showCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "show [path]", + Use: "show ", Short: "jsonnet as yaml", Args: cobra.ExactArgs(1), Annotations: map[string]string{