summaryrefslogtreecommitdiff
path: root/cmd/podman/healthcheck.go
blob: 140206dbe6079ca52ba7c27b954d1d245844d8cb (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
27
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)
}