Skip to content

Commit dd55eee

Browse files
authored
Merge pull request #991 from elezar/rename-app-name
Minor updates to nvidia-ctk-installer
2 parents e4547bd + 6249787 commit dd55eee

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/nvidia-ctk-installer/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/runtime"
1515
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/toolkit"
16+
"github.com/NVIDIA/nvidia-container-toolkit/internal/info"
1617
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
1718
)
1819

@@ -48,9 +49,6 @@ func (o options) toolkitRoot() string {
4849
return filepath.Join(o.root, toolkitSubDir)
4950
}
5051

51-
// Version defines the CLI version. This is set at build time using LD FLAGS
52-
var Version = "development"
53-
5452
func main() {
5553
logger := logger.New()
5654

@@ -97,11 +95,11 @@ func (a app) build() *cli.App {
9795
}
9896
// Create the top-level CLI
9997
c := cli.NewApp()
100-
c.Name = "nvidia-toolkit"
98+
c.Name = "nvidia-ctk-installer"
10199
c.Usage = "Install the nvidia-container-toolkit for use by a given runtime"
102100
c.UsageText = "[DESTINATION] [-n | --no-daemon] [-r | --runtime] [-u | --runtime-args]"
103101
c.Description = "DESTINATION points to the host path underneath which the nvidia-container-toolkit should be installed.\nIt will be installed at ${DESTINATION}/toolkit"
104-
c.Version = Version
102+
c.Version = info.GetVersionString()
105103
c.Before = func(ctx *cli.Context) error {
106104
return a.Before(ctx, &options)
107105
}

0 commit comments

Comments
 (0)