aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/healthcheck.go
blob: e7cc125cca36f0940d477a3609c71b4b720159b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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,
	},
}

// Commands that are universally implemented
var healthcheckCommands []*cobra.Command

func init() {
	healthcheckCommand.AddCommand(healthcheckCommands...)
	healthcheckCommand.AddCommand(getHealtcheckSubCommands()...)
	healthcheckCommand.SetUsageTemplate(UsageTemplate())
	rootCmd.AddCommand(healthcheckCommand.Command)
}