Skip to content

Commit 779b1be

Browse files
[no-relnote] Fix typo con nvidia-ctk/cdi cmd
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
1 parent ef13fca commit 779b1be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/nvidia-ctk/cdi/cdi.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type command struct {
2929
logger logger.Interface
3030
}
3131

32-
// NewCommand constructs an info command with the specified logger
32+
// NewCommand constructs a cdi command with the specified logger
3333
func NewCommand(logger logger.Interface) *cli.Command {
3434
c := command{
3535
logger: logger,
@@ -39,17 +39,17 @@ func NewCommand(logger logger.Interface) *cli.Command {
3939

4040
// build
4141
func (m command) build() *cli.Command {
42-
// Create the 'hook' command
43-
hook := cli.Command{
42+
// Create the 'cdi' command
43+
cdi := cli.Command{
4444
Name: "cdi",
4545
Usage: "Provide tools for interacting with Container Device Interface specifications",
4646
}
4747

48-
hook.Subcommands = []*cli.Command{
48+
cdi.Commands = []*cli.Command{
4949
generate.NewCommand(m.logger),
5050
transform.NewCommand(m.logger),
5151
list.NewCommand(m.logger),
5252
}
5353

54-
return &hook
54+
return &cdi
5555
}

0 commit comments

Comments
 (0)