MCPcopy Create free account
hub / github.com/github/gh-aw / addEngineFlag

Function addEngineFlag

pkg/cli/flags.go:13–15  ·  view source on GitHub ↗

addEngineFlag adds the --engine/-e flag to a command. This flag allows overriding the AI engine type.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

11// addEngineFlag adds the --engine/-e flag to a command.
12// This flag allows overriding the AI engine type.
13func addEngineFlag(cmd *cobra.Command) {
14 cmd.Flags().StringP("engine", "e", "", engineFlagUsage("Override AI engine"))
15}
16
17// addEngineFilterFlag adds the --engine flag to a command for filtering.
18// This flag allows filtering results by AI engine type. No shorthand is

Callers 8

NewAddWizardCommandFunction · 0.85
registerAddCommandFlagsFunction · 0.85
NewUpdateCommandFunction · 0.85
NewInitCommandFunction · 0.85
NewValidateCommandFunction · 0.85
NewTrialCommandFunction · 0.85
registerDeployFlagsFunction · 0.85
TestEngineFlagUsageTextFunction · 0.85

Calls 1

engineFlagUsageFunction · 0.85

Tested by 1

TestEngineFlagUsageTextFunction · 0.68