Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/commandsgen/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,5 +458,8 @@ func (o *Option) writeFlagBuilding(selfVar, flagVar string, w *codeWriter) error
if o.Deprecated != "" {
w.writeLinef("_ = %v.MarkDeprecated(%q, %q)", flagVar, o.Name, o.Deprecated)
}
if o.Hidden {
w.writeLinef("_ = %v.MarkHidden(%q)", flagVar, o.Name)
}
return nil
}
1 change: 1 addition & 0 deletions internal/commandsgen/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type (
Aliases []string `yaml:"aliases,omitempty"`
EnumValues []string `yaml:"enum-values,omitempty"`
Experimental bool `yaml:"experimental,omitempty"`
Hidden bool `yaml:"hidden,omitempty"`
HiddenLegacyValues []string `yaml:"hidden-legacy-values,omitempty"`
}

Expand Down
3 changes: 1 addition & 2 deletions internal/temporalcli/commands.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The large set of comments at the top of this file was supposed to describe all fields this file could take, but I guess it is getting stale. Regardless, I think we should add hidden there. Not blocking though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call; fixed!

Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
# default: The default value. No default means zero value of the type. (string)
# enum-values: A list of possible values for the string-enum type. (string[])
# aliases: A list of aliases for the option. (string[])
# hidden: Hides the option from help output. (bool)
# option-sets: A list of option sets. (string[])

# * name, summary, and descrption are required fields. All other fields are optional.
Expand Down Expand Up @@ -3374,7 +3375,6 @@ commands:
- name: queue-rps-limit-reason
type: string
description: Reason for queue rate limit update.
hidden: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked with the team and this is not actually desirable.

- name: fairness-key-rps-limit-default
type: string
display-type: float|default
Expand All @@ -3384,7 +3384,6 @@ commands:
- name: fairness-key-rps-limit-reason
type: string
description: Reason for fairness key rate limit update.
hidden: true

- name: temporal workflow
summary: Start, list, and operate on Workflows
Expand Down