MCPcopy Index your code
hub / github.com/google/go-github / newFlagSet

Function newFlagSet

example/auditlogstream/main.go:82–86  ·  view source on GitHub ↗

newFlagSet creates a FlagSet with the common -enterprise flag pre-registered.

(name string)

Source from the content-addressed store, hash-verified

80
81// newFlagSet creates a FlagSet with the common -enterprise flag pre-registered.
82func newFlagSet(name string) (*flag.FlagSet, *string) {
83 fs := flag.NewFlagSet(name, flag.ExitOnError)
84 enterprise := fs.String("enterprise", "", "Enterprise slug (required).")
85 return fs, enterprise
86}
87
88// parseAndInit parses the FlagSet, validates the enterprise flag, reads
89// environment variables, and returns a ready-to-use context, client, and

Callers 2

runCreateFunction · 0.85
runDeleteFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…