MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / commandDoesNotRequireClient

Function commandDoesNotRequireClient

cmd/octopus/main.go:94–100  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

92}
93
94func commandDoesNotRequireClient(args []string) bool {
95 if args == nil || len(args) == 0 {
96 return true
97 }
98 cmdToRun := args[0]
99 return cmdToRun == "config" || cmdToRun == "version" || cmdToRun == "--version" || cmdToRun == "-v" || cmdToRun == "help" || cmdToRun == "login" || cmdToRun == "logout" || (cmdToRun == "package" && util.SliceContains(args, "create"))
100}

Callers 1

mainFunction · 0.85

Calls 1

SliceContainsFunction · 0.92

Tested by

no test coverage detected