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

Function stop

docs/examples/provider.go:106–110  ·  view source on GitHub ↗
(_ *cobra.Command, _ []string)

Source from the content-addressed store, hash-verified

104}
105
106func stop(_ *cobra.Command, _ []string) {
107 if marker := os.Getenv("PROVIDER_STOP_MARKER"); marker != "" {
108 _ = os.WriteFile(marker, []byte("stopped"), 0o600)
109 }
110}
111
112func metadataCommand(upCmd, downCmd, stopCmd *cobra.Command) *cobra.Command {
113 return &cobra.Command{

Callers

nothing calls this directly

Calls 1

WriteFileMethod · 0.80

Tested by

no test coverage detected