From 02b9271a7da38fba7527a5c6cd27b2a1e4719d97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 12 Nov 2025 19:12:40 +0000 Subject: [PATCH 1/2] Initial plan From d0172e92a6771759353740b6535412e262da613b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 12 Nov 2025 19:21:45 +0000 Subject: [PATCH 2/2] Change --engine short flag from -a to -e and standardize description - Change short flag from -a to -e in compile, run, add, update, and trial commands - Standardize description to "Override AI engine (claude, codex, copilot, custom)" across all commands - The -e flag is more intuitive as it relates to "engine" - This is a breaking change for users using the -a flag Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- cmd/gh-aw/main.go | 4 ++-- pkg/cli/add_command.go | 2 +- pkg/cli/trial_command.go | 2 +- pkg/cli/update_command.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/gh-aw/main.go b/cmd/gh-aw/main.go index 3c7944f2d34..f053a3601a2 100644 --- a/cmd/gh-aw/main.go +++ b/cmd/gh-aw/main.go @@ -331,7 +331,7 @@ Use "` + constants.CLIExtensionPrefix + ` help all" to show help for all command newCmd.Flags().Bool("force", false, "Overwrite existing workflow files") // Add AI flag to compile and add commands - compileCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot)") + compileCmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)") compileCmd.Flags().Bool("validate", false, "Enable GitHub Actions workflow schema validation, container image validation, and action SHA validation") compileCmd.Flags().BoolP("watch", "w", false, "Watch for changes to workflow files and recompile automatically") 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 // Add flags to run command runCmd.Flags().Int("repeat", 0, "Number of times to repeat running workflows (0 = run once)") runCmd.Flags().Bool("enable-if-needed", false, "Enable the workflow before running if needed, and restore state afterward") - runCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)") + runCmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)") runCmd.Flags().StringP("repo", "r", "", "Repository to run the workflow in (owner/repo format)") runCmd.Flags().Bool("auto-merge-prs", false, "Auto-merge any pull requests created during the workflow execution") runCmd.Flags().Bool("use-local-secrets", false, "Use local environment API key secrets for workflow execution (pushes and cleans up secrets in repository)") diff --git a/pkg/cli/add_command.go b/pkg/cli/add_command.go index 33b2e797871..9966c167166 100644 --- a/pkg/cli/add_command.go +++ b/pkg/cli/add_command.go @@ -99,7 +99,7 @@ The --force flag overwrites existing workflow files.`, cmd.Flags().StringP("name", "n", "", "Specify name for the added workflow (without .md extension)") // Add AI flag to add command - cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)") + cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)") // Add repository flag to add command cmd.Flags().StringP("repo", "r", "", "Install and use workflows from specified repository (org/repo)") diff --git a/pkg/cli/trial_command.go b/pkg/cli/trial_command.go index 86e322f5873..14a8f85d83a 100644 --- a/pkg/cli/trial_command.go +++ b/pkg/cli/trial_command.go @@ -157,7 +157,7 @@ Trial results are saved both locally (in trials/ directory) and in the host repo cmd.Flags().String("trigger-context", "", "Trigger context URL (e.g., GitHub issue URL) for issue-triggered workflows") cmd.Flags().Int("repeat", 0, "Number of times to repeat running workflows (0 = run once)") cmd.Flags().Bool("auto-merge-prs", false, "Auto-merge any pull requests created during the trial (requires --clone-repo)") - cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot, custom)") + cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)") cmd.Flags().String("append", "", "Append extra content to the end of agentic workflow on installation") cmd.Flags().Bool("use-local-secrets", false, "Use local environment API key secrets for trial execution (pushes and cleans up secrets in repository)") diff --git a/pkg/cli/update_command.go b/pkg/cli/update_command.go index 8ed2a5cae7e..ea6ccb0b224 100644 --- a/pkg/cli/update_command.go +++ b/pkg/cli/update_command.go @@ -59,7 +59,7 @@ Examples: cmd.Flags().Bool("major", false, "Allow major version updates when updating tagged releases") cmd.Flags().Bool("force", false, "Force update even if no changes detected") - cmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, copilot)") + cmd.Flags().StringP("engine", "e", "", "Override AI engine (claude, codex, copilot, custom)") cmd.Flags().Bool("pr", false, "Create a pull request with the workflow changes") return cmd