MCPcopy Create free account
hub / github.com/entireio/git-sync / newProtocolFlag

Function newProtocolFlag

cmd/git-sync/flags.go:91–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func newProtocolFlag() protocolModeFlag {
92 return protocolModeFlag(protocolMode(envOr("GITSYNC_PROTOCOL", validation.ProtocolAuto)))
93}
94
95func envOr(key, fallback string) string {
96 value := os.Getenv(key)

Callers 5

newSyncLikeCmdFunction · 0.85
newProbeCmdFunction · 0.85
newFetchCmdFunction · 0.85
newBootstrapCmdFunction · 0.85
newConvertSHA256CmdFunction · 0.85

Calls 3

protocolModeFlagTypeAlias · 0.85
protocolModeTypeAlias · 0.85
envOrFunction · 0.85

Tested by

no test coverage detected