Skip to content

Commit 22bec30

Browse files
committed
Replace cli.NewApp with cli.Command
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 57ac84c commit 22bec30

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

cmd/config-manager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (m *SyncableConfig) Get() string {
116116
func main() {
117117
flags := Flags{}
118118

119-
c := cli.NewApp()
119+
c := cli.Command{}
120120
c.Before = func(c *cli.Context) error {
121121
return validateFlags(c, &flags)
122122
}

cmd/gpu-feature-discovery/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type Config struct {
4040
func main() {
4141
config := &Config{}
4242

43-
c := cli.NewApp()
43+
c := cli.Command{}
4444
c.Name = "GPU Feature Discovery"
4545
c.Usage = "generate labels for NVIDIA devices"
4646
c.Version = info.GetVersionString()

cmd/mps-control-daemon/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Config struct {
5151
func main() {
5252
config := &Config{}
5353

54-
c := cli.NewApp()
54+
c := cli.Command{}
5555
c.Name = "NVIDIA MPS Control Daemon"
5656
c.Version = info.GetVersionString()
5757
c.Action = func(ctx *cli.Context) error {

cmd/nvidia-device-plugin/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ type options struct {
4747
}
4848

4949
func main() {
50-
c := cli.NewApp()
5150
o := &options{}
51+
52+
c := cli.Command{}
5253
c.Name = "NVIDIA Device Plugin"
5354
c.Usage = "NVIDIA device plugin for Kubernetes"
5455
c.Version = info.GetVersionString()

0 commit comments

Comments
 (0)