spud/cli/stop_service.go

19 lines
360 B
Go
Raw Normal View History

// Stopping services
//
// Commands related to stopping services.
package cli
import (
"github.com/spf13/cobra"
service "spud/service"
)
var stop = &cobra.Command{
Use: "stop",
Short: "Stops a running service and all of its containers.",
Run: func(cmd *cobra.Command, args []string) {
serviceName := args[0]
service.StopService(serviceName)
},
}