chore: rename stacks-set to stack-set

You can only set one stack...
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-23 17:36:56 -05:00
parent bad90b2b1d
commit b5c85ad5be
7 changed files with 10 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ Additional commands:`
buildpacks:remove <app> <buildpack>, Remove a buildpack set on the app
buildpacks:report [<app>] [<flag>], Displays a buildpack report for one or more apps
buildpacks:set [--index 1] <app> <buildpack>, Set new app buildpack at a given position defaulting to the first buildpack if no index is specified
buildpacks:stacks-set <app> <stack>, Sets the stack of an app
buildpacks:stack-set <app> <stack>, Sets the stack of an app
`
)

View File

@@ -57,8 +57,8 @@ func main() {
appName := args.Arg(0)
buildpack := args.Arg(1)
err = buildpacks.CommandSet(appName, buildpack, *index)
case "stacks-set":
args := flag.NewFlagSet("buildpacks:stacks-set", flag.ExitOnError)
case "stack-set":
args := flag.NewFlagSet("buildpacks:stack-set", flag.ExitOnError)
global := args.Bool("global", false, "--global: set a global property")
args.Parse(os.Args[2:])
appName := args.Arg(0)
@@ -67,7 +67,7 @@ func main() {
appName = "--global"
stack = args.Arg(0)
}
err = buildpacks.CommandStacksSet(appName, stack)
err = buildpacks.CommandStackSet(appName, stack)
default:
common.LogFail(fmt.Sprintf("Invalid plugin subcommand call: %s", subcommand))
}