Skip to content
Closed
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
6 changes: 3 additions & 3 deletions internal/commands/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func NewResultsPredicatesCommand(resultsPredicatesWrapper wrappers.ResultsPredic
func triageGetStatesSubCommand(customStatesWrapper wrappers.CustomStatesWrapper) *cobra.Command {
triageGetStatesCmd := &cobra.Command{
Use: "get-states",
Short: "Fetch and display custom states.",
Long: "Retrieves a list of custom states and prints their names.",
Short: "Show the custom states that have been configured in your tenant",
Copy link

Choose a reason for hiding this comment

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

Consider rephrasing the Short description to be more concise and consistent with command description conventions. For example: List configured custom states in the tenant.

Long: "The get-states command shows information about each of the custom states that have been configured in your tenant account",
Copy link

Choose a reason for hiding this comment

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

The Long description seems verbose. Simplify to convey the necessary information more concisely. For example: Lists and displays details of all custom states configured in the tenant account.

Example: heredoc.Doc(
`
$ cx triage get-states
Expand All @@ -46,7 +46,7 @@ func triageGetStatesSubCommand(customStatesWrapper wrappers.CustomStatesWrapper)
RunE: runTriageGetStates(customStatesWrapper),
}

triageGetStatesCmd.PersistentFlags().Bool(params.AllStatesFlag, false, "Include deleted states")
triageGetStatesCmd.PersistentFlags().Bool(params.AllStatesFlag, false, "Show all custom states, including the ones that have been deleted")
Copy link

Choose a reason for hiding this comment

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

Consider rephrasing the flag description to maintain consistency with the existing style. For example, 'Include all custom states, even those that have been deleted.'


return triageGetStatesCmd
}
Expand Down
Loading