Switching cp to copy
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
func CobraRunE(cmd *cobra.Command, args []string) (err error) {
|
||||
|
||||
if len(args) > 2 {
|
||||
wwlog.Warn("cp only requires 2 arguments but you provided %d arguments. Hence, they will be ignored.", len(args))
|
||||
wwlog.Warn("copy only requires 2 arguments but you provided %d arguments. Hence, they will be ignored.", len(args))
|
||||
}
|
||||
|
||||
cdp := &wwapiv1.ContainerCopyParameter{
|
||||
|
||||
@@ -8,7 +8,8 @@ import (
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "cp CONTAINER NEW_NAME",
|
||||
Use: "copy CONTAINER NEW_NAME",
|
||||
Aliases: []string{"cp"},
|
||||
Short: "Copy an existing container",
|
||||
Long: "This command will duplicate an imported container image.",
|
||||
RunE: CobraRunE,
|
||||
|
||||
Reference in New Issue
Block a user