diff --git a/API.md b/API.md index 9a8e8b0d..2b94cf88 100644 --- a/API.md +++ b/API.md @@ -19,7 +19,7 @@ wwctl container delete wwctl container import wwctl container list wwctl container show -wwctl container cp +wwctl container copy Some notes on the files: diff --git a/CHANGELOG.md b/CHANGELOG.md index d5e3beda..b7c0f6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New documentation for the hostlist syntax. #611 - New documentation for development environment (Vagrant) -- Ability to duplicate an image with `wwctl container cp` or the API +- Ability to duplicate an image with `wwctl container copy` or the API - New documentation for container duplication procedure ### Fixed diff --git a/internal/app/wwctl/container/copy/main.go b/internal/app/wwctl/container/copy/main.go index f3499f78..5ecc6e3a 100644 --- a/internal/app/wwctl/container/copy/main.go +++ b/internal/app/wwctl/container/copy/main.go @@ -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{ diff --git a/internal/app/wwctl/container/copy/root.go b/internal/app/wwctl/container/copy/root.go index 5490adce..fad0dbaa 100644 --- a/internal/app/wwctl/container/copy/root.go +++ b/internal/app/wwctl/container/copy/root.go @@ -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,