feat: add prop clone command

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-17 18:48:06 -05:00
parent ebd27cd666
commit d336d7c5c2
3 changed files with 30 additions and 0 deletions

View File

@@ -33,6 +33,14 @@ func main() {
pluginName := flag.Arg(1)
switch cmd {
case "clone":
oldAppName := flag.Arg(2)
newAppName := flag.Arg(3)
err := common.PropertyClone(pluginName, oldAppName, newAppName)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
case "del":
appName := flag.Arg(2)
property := flag.Arg(3)