mirror of https://github.com/pulumi/pulumi.git
22 lines
416 B
Go
22 lines
416 B
Go
package internal
|
|
|
|
type StackCreateConfig struct {
|
|
teams []string
|
|
}
|
|
|
|
func NewStackCreateConfig() *StackCreateConfig {
|
|
return &StackCreateConfig{}
|
|
}
|
|
|
|
func (conf *StackCreateConfig) AddTeam(team string) {
|
|
conf.teams = append(conf.teams)
|
|
}
|
|
|
|
func (conf *StackCreateConfig) GenerateFlags() []string {
|
|
var flags = []string{}
|
|
for _, team := range conf.teams {
|
|
flags = append(flags, "--team", team)
|
|
}
|
|
return flags
|
|
}
|