28 lines
656 B
Go
28 lines
656 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var healthcheckDescription = "Manage health checks on containers"
|
|
var healthcheckCommand = cliconfig.PodmanCommand{
|
|
Command: &cobra.Command{
|
|
Use: "healthcheck",
|
|
Short: "Manage Healthcheck",
|
|
Long: healthcheckDescription,
|
|
RunE: commandRunE(),
|
|
},
|
|
}
|
|
|
|
// Commands that are universally implemented
|
|
var healthcheckCommands = []*cobra.Command{
|
|
_healthcheckrunCommand,
|
|
}
|
|
|
|
func init() {
|
|
healthcheckCommand.AddCommand(healthcheckCommands...)
|
|
healthcheckCommand.SetUsageTemplate(UsageTemplate())
|
|
rootCmd.AddCommand(healthcheckCommand.Command)
|
|
}
|