@@ -47,7 +47,7 @@ func newDiskCommand() *cobra.Command {
47
47
newDiskDeleteCommand (),
48
48
newDiskUnlockCommand (),
49
49
newDiskResizeCommand (),
50
- newDiskAddCommand (),
50
+ newDiskImportCommand (),
51
51
)
52
52
return diskCommand
53
53
}
@@ -423,22 +423,21 @@ func diskBashComplete(cmd *cobra.Command, _ []string, _ string) ([]string, cobra
423
423
return bashCompleteDiskNames (cmd )
424
424
}
425
425
426
- func newDiskAddCommand () * cobra.Command {
427
- diskAddCommand := & cobra.Command {
428
- Use : "add DISK FILE" ,
426
+ func newDiskImportCommand () * cobra.Command {
427
+ diskImportCommand := & cobra.Command {
428
+ Use : "import DISK FILE" ,
429
429
Example : `
430
- Add a disk:
431
- $ limactl disk add DISK DISKPATH
430
+ Import a disk:
431
+ $ limactl disk import DISK DISKPATH
432
432
` ,
433
- Short : "Add an existing disk to Lima" ,
434
- Aliases : []string {"import" },
433
+ Short : "Import an existing disk to Lima" ,
435
434
Args : WrapArgsError (cobra .ExactArgs (2 )),
436
- RunE : diskAddAction ,
435
+ RunE : diskImportAction ,
437
436
}
438
- return diskAddCommand
437
+ return diskImportCommand
439
438
}
440
439
441
- func diskAddAction (_ * cobra.Command , args []string ) error {
440
+ func diskImportAction (_ * cobra.Command , args []string ) error {
442
441
diskName := args [0 ]
443
442
fName := args [1 ]
444
443
@@ -479,7 +478,7 @@ func diskAddAction(_ *cobra.Command, args []string) error {
479
478
return nil
480
479
}
481
480
482
- logrus .Infof ("Added %s with size %s" , diskName , units .BytesSize (float64 (diskSize )))
481
+ logrus .Infof ("Imported %s with size %s" , diskName , units .BytesSize (float64 (diskSize )))
483
482
484
483
return nil
485
484
}
0 commit comments