-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change description for custom states (AST-80216) #1036
Conversation
@@ -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", |
There was a problem hiding this comment.
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.
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", | ||
Long: "The get-states command shows information about each of the custom states that have been configured in your tenant account", |
There was a problem hiding this comment.
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.
@@ -46,7 +46,7 @@ | |||
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") |
There was a problem hiding this comment.
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.'
Great job, no security vulnerabilities found in this Pull Request |
By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
References
Testing
Checklist