From 70678b7333da64be932ad83dd6829a80c4abe7ca Mon Sep 17 00:00:00 2001 From: Torgeir Thoresen Date: Mon, 22 May 2023 13:37:27 +0200 Subject: [PATCH] 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. --- pkg/cmd/actions/actions.go | 2 +- pkg/cmd/workflow/list/list.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/actions/actions.go b/pkg/cmd/actions/actions.go index d24df6631..fcf33f447 100644 --- a/pkg/cmd/actions/actions.go +++ b/pkg/cmd/actions/actions.go @@ -42,7 +42,7 @@ func actionsExplainer(cs *iostreams.ColorScheme) string { To see more help, run 'gh help run ' %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 diff --git a/pkg/cmd/workflow/list/list.go b/pkg/cmd/workflow/list/list.go index a080c4cf9..f590f1602 100644 --- a/pkg/cmd/workflow/list/list.go +++ b/pkg/cmd/workflow/list/list.go @@ -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 }