INNER CODE UNIT · Go
main
NVIDIA/k8s-device-plugin · cmd/config-manager/main.go:118
func main() {
flags := Flags{}
c := cli.NewApp()
c.Before = func(c *cli.Context) error {
return validateFlags(c, &flags)
}
c.Action = func(c *cli.Context) error {
return start(c, &flags)
}
c.Flags = []cli.Flag{
&cli.BoolFlag{
Name: "oneshot",
Value: DefaultOneshot,
Usage: "check and update the config only once and then exit",
Destination: &flags.Oneshot,
EnvVars: []string{"ONESHOT"},