Switching cp to copy

This commit is contained in:
Arnaud LECOMTE
2023-09-05 14:37:29 +02:00
parent f2392f6e37
commit aeb7793fba
4 changed files with 5 additions and 4 deletions

2
API.md
View File

@@ -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:

View File

@@ -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

View File

@@ -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{

View File

@@ -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,