Clarify docs regarding what is listed when running gh workflow list

Prevent confusion that `--all` actually list all workflows, `--limit` is
what actually needs to be adjusted to list all workflows, if there are
many.
This commit is contained in:
Torgeir Thoresen 2023-05-22 13:37:27 +02:00
parent 9e45b0b2d9
commit 70678b7333
No known key found for this signature in database
GPG key ID: 77836712DAEA8B95
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ func actionsExplainer(cs *iostreams.ColorScheme) string {
To see more help, run 'gh help run <subcommand>'
%s
gh workflow list: List all the workflow files in your repository
gh workflow list: List workflow files in your repository
gh workflow view: View details for a workflow file
gh workflow enable: Enable a workflow file
gh workflow disable: Disable a workflow file

View file

@ -58,7 +58,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
}
cmd.Flags().IntVarP(&opts.Limit, "limit", "L", defaultLimit, "Maximum number of workflows to fetch")
cmd.Flags().BoolVarP(&opts.All, "all", "a", false, "Show all workflows, including disabled workflows")
cmd.Flags().BoolVarP(&opts.All, "all", "a", false, "Also show disabled workflows")
return cmd
}