diff --git a/docs/command-reference/tanzu_apps_workload_apply.md b/docs/command-reference/tanzu_apps_workload_apply.md index 0979351a4..1be06e7fb 100644 --- a/docs/command-reference/tanzu_apps_workload_apply.md +++ b/docs/command-reference/tanzu_apps_workload_apply.md @@ -32,10 +32,10 @@ tanzu apps workload apply --file workload.yaml --dry-run print kubernetes resources to stdout rather than apply them to the cluster, messages normally on stdout will be sent to stderr -e, --env "key=value" pair environment variables represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) -f, --file file path file path containing the description of a single workload, other flags are layered on top of this resource. Use value "-" to read from stdin - --git-branch branch branch within the git repo to checkout - --git-commit SHA commit SHA within the git repo to checkout - --git-repo url git url to remote source code - --git-tag tag tag within the git repo to checkout + --git-branch branch branch within the git repo to checkout (to unset, pass empty string "") + --git-commit SHA commit SHA within the git repo to checkout (to unset, pass empty string "") + --git-repo url git url to remote source code (to unset, pass empty string "") + --git-tag tag tag within the git repo to checkout (to unset, pass empty string "") -h, --help help for apply -i, --image image pre-built image, skips the source resolution and build phases of the supply chain -l, --label "key=value" pair label is represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) diff --git a/docs/command-reference/tanzu_apps_workload_create.md b/docs/command-reference/tanzu_apps_workload_create.md index 829cb04eb..f786fc633 100644 --- a/docs/command-reference/tanzu_apps_workload_create.md +++ b/docs/command-reference/tanzu_apps_workload_create.md @@ -34,10 +34,10 @@ tanzu apps workload create --file workload.yaml --dry-run print kubernetes resources to stdout rather than apply them to the cluster, messages normally on stdout will be sent to stderr -e, --env "key=value" pair environment variables represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) -f, --file file path file path containing the description of a single workload, other flags are layered on top of this resource. Use value "-" to read from stdin - --git-branch branch branch within the git repo to checkout - --git-commit SHA commit SHA within the git repo to checkout - --git-repo url git url to remote source code - --git-tag tag tag within the git repo to checkout + --git-branch branch branch within the git repo to checkout (to unset, pass empty string "") + --git-commit SHA commit SHA within the git repo to checkout (to unset, pass empty string "") + --git-repo url git url to remote source code (to unset, pass empty string "") + --git-tag tag tag within the git repo to checkout (to unset, pass empty string "") -h, --help help for create -i, --image image pre-built image, skips the source resolution and build phases of the supply chain -l, --label "key=value" pair label is represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) diff --git a/docs/command-reference/tanzu_apps_workload_update.md b/docs/command-reference/tanzu_apps_workload_update.md index 15a3b4a73..b60cd31fd 100644 --- a/docs/command-reference/tanzu_apps_workload_update.md +++ b/docs/command-reference/tanzu_apps_workload_update.md @@ -36,10 +36,10 @@ tanzu apps workload update --file workload.yaml --dry-run print kubernetes resources to stdout rather than apply them to the cluster, messages normally on stdout will be sent to stderr -e, --env "key=value" pair environment variables represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) -f, --file file path file path containing the description of a single workload, other flags are layered on top of this resource. Use value "-" to read from stdin - --git-branch branch branch within the git repo to checkout - --git-commit SHA commit SHA within the git repo to checkout - --git-repo url git url to remote source code - --git-tag tag tag within the git repo to checkout + --git-branch branch branch within the git repo to checkout (to unset, pass empty string "") + --git-commit SHA commit SHA within the git repo to checkout (to unset, pass empty string "") + --git-repo url git url to remote source code (to unset, pass empty string "") + --git-tag tag tag within the git repo to checkout (to unset, pass empty string "") -h, --help help for update -i, --image image pre-built image, skips the source resolution and build phases of the supply chain -l, --label "key=value" pair label is represented as a "key=value" pair ("key-" to remove, flag can be used multiple times) diff --git a/pkg/commands/workload.go b/pkg/commands/workload.go index e192cf696..8dcbe888d 100644 --- a/pkg/commands/workload.go +++ b/pkg/commands/workload.go @@ -718,10 +718,10 @@ func (opts *WorkloadOptions) DefineFlags(ctx context.Context, c *cli.Config, cmd cmd.Flags().StringArrayVar(&opts.ParamsYaml, cli.StripDash(flags.ParamYamlFlagName), []string{}, "specify nested parameters using YAML or JSON formatted values represented as a `\"key=value\" pair` (\"key-\" to remove, flag can be used multiple times)") cmd.Flags().BoolVar(&opts.Debug, cli.StripDash(flags.DebugFlagName), false, "put the workload in debug mode ("+flags.DebugFlagName+"=false to deactivate)") cmd.Flags().BoolVar(&opts.LiveUpdate, cli.StripDash(flags.LiveUpdateFlagName), false, "put the workload in live update mode ("+flags.LiveUpdateFlagName+"=false to deactivate)") - cmd.Flags().StringVar(&opts.GitRepo, cli.StripDash(flags.GitRepoFlagName), "", "git `url` to remote source code") - cmd.Flags().StringVar(&opts.GitBranch, cli.StripDash(flags.GitBranchFlagName), "", "`branch` within the git repo to checkout") - cmd.Flags().StringVar(&opts.GitCommit, cli.StripDash(flags.GitCommitFlagName), "", "commit `SHA` within the git repo to checkout") - cmd.Flags().StringVar(&opts.GitTag, cli.StripDash(flags.GitTagFlagName), "", "`tag` within the git repo to checkout") + cmd.Flags().StringVar(&opts.GitRepo, cli.StripDash(flags.GitRepoFlagName), "", "git `url` to remote source code (to unset, pass empty string \"\")") + cmd.Flags().StringVar(&opts.GitBranch, cli.StripDash(flags.GitBranchFlagName), "", "`branch` within the git repo to checkout (to unset, pass empty string \"\")") + cmd.Flags().StringVar(&opts.GitCommit, cli.StripDash(flags.GitCommitFlagName), "", "commit `SHA` within the git repo to checkout (to unset, pass empty string \"\")") + cmd.Flags().StringVar(&opts.GitTag, cli.StripDash(flags.GitTagFlagName), "", "`tag` within the git repo to checkout (to unset, pass empty string \"\")") cmd.Flags().StringVarP(&opts.SourceImage, cli.StripDash(flags.SourceImageFlagName), "s", "", "destination `image` repository where source code is staged before being built") cmd.Flags().StringVar(&opts.SubPath, cli.StripDash(flags.SubPathFlagName), "", "relative `path` inside the repo or image to treat as application root (to unset, pass empty string \"\")") cmd.Flags().StringVar(&opts.LocalPath, cli.StripDash(flags.LocalPathFlagName), "", "`path` to a directory, .zip, .jar or .war file containing workload source code")