Skip to content

Commit

Permalink
Hide --chart flag
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Jan 17, 2025
1 parent a2e5013 commit c526af0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/cmd/release_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (r *runners) InitReleaseCreate(parent *cobra.Command) error {
cmd := &cobra.Command{
Use: "create",
Short: "Create a new release",
Long: `Create a new release by providing YAML configuration for the next release in
Long: `Create a new release by providing application manifests for the next release in
your sequence.`,
SilenceUsage: false,
SilenceErrors: true, // this command uses custom error printing
Expand Down Expand Up @@ -58,6 +58,7 @@ func (r *runners) InitReleaseCreate(parent *cobra.Command) error {
cmd.Flags().MarkHidden("required")
cmd.Flags().MarkHidden("yaml-file")
cmd.Flags().MarkHidden("yaml")
cmd.Flags().MarkHidden("chart")

cmd.RunE = r.releaseCreate
return nil
Expand Down
2 changes: 2 additions & 0 deletions cli/cmd/release_lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (r *runners) InitReleaseLint(parent *cobra.Command) {
cmd.Flags().StringVar(&r.args.lintReleaseFailOn, "fail-on", "error", "The minimum severity to cause the command to exit with a non-zero exit code. Supported values are [info, warn, error, none].")
cmd.Flags().StringVar(&r.outputFormat, "output", "table", "The output format to use. One of: json|table (default: table)")

cmd.Flags().MarkHidden("chart")

cmd.RunE = r.releaseLint
}

Expand Down
2 changes: 2 additions & 0 deletions cli/cmd/release_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func (r *runners) InitReleaseUpdate(parent *cobra.Command) {
cmd.Flags().StringVar(&r.args.updateReleaseYamlDir, "yaml-dir", "", "The directory containing multiple yamls for a Kots release. Cannot be used with the --yaml flag.")
cmd.Flags().StringVar(&r.args.updateReleaseChart, "chart", "", "Helm chart to create the release from. Cannot be used with the --yaml, --yaml-file, or --yaml-dir flags.")

cmd.Flags().MarkHidden("chart")

cmd.RunE = r.releaseUpdate
}

Expand Down

0 comments on commit c526af0

Please sign in to comment.