File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
3333func 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
4141func (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}
You can’t perform that action at this time.
0 commit comments