MCPcopy Create free account
hub / github.com/docker/compose / RunningAsStandalone

Function RunningAsStandalone

cmd/compose/compose.go:415–417  ·  view source on GitHub ↗

RunningAsStandalone detects when running as a standalone program

()

Source from the content-addressed store, hash-verified

413
414// RunningAsStandalone detects when running as a standalone program
415func RunningAsStandalone() bool {
416 return len(os.Args) < 2 || os.Args[1] != metadata.MetadataSubcommandName && os.Args[1] != metadata.HookSubcommandName && os.Args[1] != PluginName
417}
418
419type BackendOptions struct {
420 Options []compose.Option

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected