MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewWorkerPoolFlags

Function NewWorkerPoolFlags

pkg/cmd/worker/shared/workerpool.go:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func NewWorkerPoolFlags() *WorkerPoolFlags {
27 return &WorkerPoolFlags{
28 WorkerPools: flag.New[[]string](FlagWorkerPool, false),
29 }
30}
31
32func RegisterCreateWorkerWorkerPoolFlags(cmd *cobra.Command, flags *WorkerPoolFlags) {
33 cmd.Flags().StringSliceVar(&flags.WorkerPools.Value, flags.WorkerPools.Name, []string{}, "The pools of which the worker will be a member.")

Callers 4

NewCreateFlagsFunction · 0.92
NewCreateFlagsFunction · 0.92

Calls 1

NewFunction · 0.92