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

Function addEngineFilterFlag

pkg/cli/flags.go:20–22  ·  view source on GitHub ↗

addEngineFilterFlag adds the --engine flag to a command for filtering. This flag allows filtering results by AI engine type. No shorthand is registered to avoid collision with the override-style --engine/-e flag.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

18// This flag allows filtering results by AI engine type. No shorthand is
19// registered to avoid collision with the override-style --engine/-e flag.
20func addEngineFilterFlag(cmd *cobra.Command) {
21 cmd.Flags().String("engine", "", engineFlagUsage("Filter logs by AI engine"))
22}
23
24// addRepoFlag adds the --repo/-r flag to a command.
25// This flag allows specifying a target repository.

Callers 2

NewLogsCommandFunction · 0.85
TestEngineFlagUsageTextFunction · 0.85

Calls 2

engineFlagUsageFunction · 0.85
StringMethod · 0.45

Tested by 1

TestEngineFlagUsageTextFunction · 0.68