Switching cp to copy
This commit is contained in:
2
API.md
2
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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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