summaryrefslogtreecommitdiff
path: root/cmd/podman/healthcheck.go
blob: 9fb099ffad1d2f4b8daa8820ce3ec08614f85ec9 (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(getHealthcheckSubCommands()...)
	healthcheckCommand.SetUsageTemplate(UsageTemplate())
	rootCmd.AddCommand(healthcheckCommand.Command)
}