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

Function main

example/auditlogstream/main.go:64–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func main() {
65 if len(os.Args) < 2 {
66 fmt.Fprintf(os.Stderr, "Usage: %v <create|delete> [flags]\n", os.Args[0])
67 os.Exit(1)
68 }
69
70 switch os.Args[1] {
71 case "create":
72 runCreate(os.Args[2:])
73 case "delete":
74 runDelete(os.Args[2:])
75 default:
76 fmt.Fprintf(os.Stderr, "Unknown command %q. Must be one of: create, delete\n", os.Args[1])
77 os.Exit(1)
78 }
79}
80
81// newFlagSet creates a FlagSet with the common -enterprise flag pre-registered.
82func newFlagSet(name string) (*flag.FlagSet, *string) {

Callers

nothing calls this directly

Calls 2

runCreateFunction · 0.85
runDeleteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…