Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/gh-aw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var verbose bool

// validateEngine validates the engine flag value
func validateEngine(engine string) error {
if engine != "" && engine != "claude" && engine != "codex" && engine != "ai-inference" && engine != "gemini" && engine != "genaiscript" {
return fmt.Errorf("invalid engine value '%s'. Must be 'claude', 'codex' (experimental), 'ai-inference', 'gemini', or 'genaiscript' (experimental)", engine)
if engine != "" && engine != "claude" && engine != "codex" && engine != "gemini" {
return fmt.Errorf("invalid engine value '%s'. Must be 'claude', 'codex', or 'gemini'", engine)
}
return nil
}
Expand Down Expand Up @@ -294,7 +294,7 @@ func init() {
addCmd.Flags().StringP("name", "n", "", "Specify name for the added workflow (without .md extension)")

// Add AI flag to add command
addCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, ai-inference, gemini, genaiscript)")
addCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, gemini)")

// Add repository flag to add command
addCmd.Flags().StringP("repo", "r", "", "Install and use workflows from specified repository (org/repo)")
Expand All @@ -319,7 +319,7 @@ func init() {
uninstallCmd.Flags().BoolP("local", "l", false, "Uninstall packages from local .aw/packages instead of global ~/.aw/packages")

// Add AI flag to compile and add commands
compileCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, ai-inference, gemini, genaiscript)")
compileCmd.Flags().StringP("engine", "a", "", "Override AI engine (claude, codex, gemini)")
compileCmd.Flags().Bool("validate", false, "Enable GitHub Actions workflow schema validation")
compileCmd.Flags().Bool("auto-compile", false, "Generate auto-compile workflow file for automatic compilation")
compileCmd.Flags().BoolP("watch", "w", false, "Watch for changes to workflow files and recompile automatically")
Expand Down