feat: implement :clone and :rename

This commit is contained in:
Jose Diaz-Gonzalez
2020-03-11 01:19:01 -04:00
parent 0be0ad7ef7
commit 057c418be4
3 changed files with 104 additions and 7 deletions

View File

@@ -96,6 +96,16 @@ func getAppName(args []string) (appName string, err error) {
return
}
func getNewAppName(args []string) (appName string, err error) {
if len(args) >= 2 {
appName = args[1]
} else {
err = errors.New("Please specify an new app name")
}
return
}
func listImagesByAppLabel(appName string) ([]string, error) {
command := []string{
common.DockerBin(),