Rename Pipeline to Group
@@ -12,7 +12,7 @@ import (
)
type OrderInstancedPipelinesCommand struct {
- Pipeline string `short:"g" long:"group" required:"true" description:"Name of the instance group"`
+ Group string `short:"g" long:"group" required:"true" description:"Name of the instance group"`
InstanceVars []flaghelpers.InstanceVarsFlag `short:"p" long:"pipeline" required:"true" description:"Instance vars identifying pipeline (can be specified multiple times to provide relative ordering)"`
Team string `long:"team" description:"Name of the team to which the pipelines belong, if different from the target default"`
}
@@ -44,7 +44,7 @@ func (command *OrderInstancedPipelinesCommand) Execute(args []string) error {
instanceVars = append(instanceVars, instanceVar.InstanceVars)
}
- err = team.OrderingPipelinesWithinGroup(command.Pipeline, instanceVars)
+ err = team.OrderingPipelinesWithinGroup(command.Group, instanceVars)
if err != nil {
displayhelpers.FailWithErrorf("failed to order instanced pipelines", err)
}
