mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-04-07 22:14:08 +00:00
Merge pull request #991 from elezar/rename-app-name
Some checks are pending
Some checks are pending
Minor updates to nvidia-ctk-installer
This commit is contained in:
commit
dd55eeecc9
@ -13,6 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/runtime"
|
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/runtime"
|
||||||
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/toolkit"
|
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk-installer/container/toolkit"
|
||||||
|
"github.com/NVIDIA/nvidia-container-toolkit/internal/info"
|
||||||
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
|
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -48,9 +49,6 @@ func (o options) toolkitRoot() string {
|
|||||||
return filepath.Join(o.root, toolkitSubDir)
|
return filepath.Join(o.root, toolkitSubDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Version defines the CLI version. This is set at build time using LD FLAGS
|
|
||||||
var Version = "development"
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
logger := logger.New()
|
logger := logger.New()
|
||||||
|
|
||||||
@ -97,11 +95,11 @@ func (a app) build() *cli.App {
|
|||||||
}
|
}
|
||||||
// Create the top-level CLI
|
// Create the top-level CLI
|
||||||
c := cli.NewApp()
|
c := cli.NewApp()
|
||||||
c.Name = "nvidia-toolkit"
|
c.Name = "nvidia-ctk-installer"
|
||||||
c.Usage = "Install the nvidia-container-toolkit for use by a given runtime"
|
c.Usage = "Install the nvidia-container-toolkit for use by a given runtime"
|
||||||
c.UsageText = "[DESTINATION] [-n | --no-daemon] [-r | --runtime] [-u | --runtime-args]"
|
c.UsageText = "[DESTINATION] [-n | --no-daemon] [-r | --runtime] [-u | --runtime-args]"
|
||||||
c.Description = "DESTINATION points to the host path underneath which the nvidia-container-toolkit should be installed.\nIt will be installed at ${DESTINATION}/toolkit"
|
c.Description = "DESTINATION points to the host path underneath which the nvidia-container-toolkit should be installed.\nIt will be installed at ${DESTINATION}/toolkit"
|
||||||
c.Version = Version
|
c.Version = info.GetVersionString()
|
||||||
c.Before = func(ctx *cli.Context) error {
|
c.Before = func(ctx *cli.Context) error {
|
||||||
return a.Before(ctx, &options)
|
return a.Before(ctx, &options)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user