MCPcopy Create free account
hub / github.com/cli/cli / ghMain

Function ghMain

acceptance/acceptance_test.go:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func ghMain() int {
33 if repositoryCreationIsManaged(os.Args[1:], os.Getenv("GH_ACCEPTANCE_FIXTURE_MODE")) {
34 fmt.Fprintln(os.Stderr, "gh repo create requires 'fixture-repo none'")
35 return 1
36 }
37 return int(ghcmd.Main())
38}
39
40func repositoryCreationIsManaged(args []string, fixtureMode string) bool {
41 return len(args) > 1 && args[0] == "repo" && args[1] == "create" && fixtureMode != "none"

Callers

nothing calls this directly

Calls 2

MainFunction · 0.92

Tested by

no test coverage detected