summaryrefslogtreecommitdiff
path: root/cmd/podman/healthcheck.go
blob: 48d6b6bbf56b4a57364e5f2051a432142ab9010f (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
26
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

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