Skip to content

Commit 8c270ad

Browse files
authored
Change --engine short flag from -a to -e across all commands (#3759)
1 parent 1149aa2 commit 8c270ad

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/gh-aw/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command
331331
newCmd.Flags().Bool("force", false, "Overwrite existing workflow files")
332332

333333
// Add AI flag to compile and add commands
334-
compileCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot)")
334+
compileCmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)")
335335
compileCmd.Flags().Bool("validate", false, "Enable GitHub Actions workflow schema validation, container image validation, and action SHA validation")
336336
compileCmd.Flags().BoolP("watch", "w", false, "Watch for changes to workflow files and recompile automatically")
337337
compileCmd.Flags().String("workflows-dir", "", "Relative directory containing workflows (default: .github/workflows)")
@@ -353,7 +353,7 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command
353353
// Add flags to run command
354354
runCmd.Flags().Int("repeat", 0, "Number of times to repeat running workflows (0 = run once)")
355355
runCmd.Flags().Bool("enable-if-needed", false, "Enable the workflow before running if needed, and restore state afterward")
356-
runCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)")
356+
runCmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)")
357357
runCmd.Flags().StringP("repo", "r", "", "Repository to run the workflow in (owner/repo format)")
358358
runCmd.Flags().Bool("auto-merge-prs", false, "Auto-merge any pull requests created during the workflow execution")
359359
runCmd.Flags().Bool("use-local-secrets", false, "Use local environment API key secrets for workflow execution (pushes and cleans up secrets in repository)")

pkg/cli/add_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The --force flag overwrites existing workflow files.`,
9999
cmd.Flags().StringP("name", "n", "", "Specify name for the added workflow (without .md extension)")
100100

101101
// Add AI flag to add command
102-
cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)")
102+
cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)")
103103

104104
// Add repository flag to add command
105105
cmd.Flags().StringP("repo", "r", "", "Install and use workflows from specified repository (org/repo)")

pkg/cli/trial_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Trial results are saved both locally (in trials/ directory) and in the host repo
157157
cmd.Flags().String("trigger-context", "", "Trigger context URL (e.g., GitHub issue URL) for issue-triggered workflows")
158158
cmd.Flags().Int("repeat", 0, "Number of times to repeat running workflows (0 = run once)")
159159
cmd.Flags().Bool("auto-merge-prs", false, "Auto-merge any pull requests created during the trial (requires --clone-repo)")
160-
cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)")
160+
cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)")
161161
cmd.Flags().String("append", "", "Append extra content to the end of agentic workflow on installation")
162162
cmd.Flags().Bool("use-local-secrets", false, "Use local environment API key secrets for trial execution (pushes and cleans up secrets in repository)")
163163

pkg/cli/update_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Examples:
5959

6060
cmd.Flags().Bool("major", false, "Allow major version updates when updating tagged releases")
6161
cmd.Flags().Bool("force", false, "Force update even if no changes detected")
62-
cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot)")
62+
cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)")
6363
cmd.Flags().Bool("pr", false, "Create a pull request with the workflow changes")
6464

6565
return cmd

0 commit comments

Comments
 (0)