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