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

Function NewCreateTargetMachinePolicyFlags

pkg/machinescommon/machinepolicy.go:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func NewCreateTargetMachinePolicyFlags() *CreateTargetMachinePolicyFlags {
39 return &CreateTargetMachinePolicyFlags{
40 MachinePolicy: flag.New[string](FlagMachinePolicy, false),
41 }
42}
43
44func RegisterCreateTargetMachinePolicyFlags(cmd *cobra.Command, machinePolicyFlags *CreateTargetMachinePolicyFlags) {
45 cmd.Flags().StringVar(&machinePolicyFlags.MachinePolicy.Value, machinePolicyFlags.MachinePolicy.Name, "", "The machine policy for the deployment target to use, only required if not using the Default Machine Policy")

Callers 4

TestNoFlag_ShouldPromptFunction · 0.92
NewCreateFlagsFunction · 0.92
NewCreateFlagsFunction · 0.92

Calls

no outgoing calls