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

Function NewCreateOptions

pkg/cmd/account/azure-oidc/create/create.go:70–78  ·  view source on GitHub ↗
(flags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

68}
69
70func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions {
71 return &CreateOptions{
72 CreateFlags: flags,
73 Dependencies: dependencies,
74 GetAllEnvironmentsCallback: func() ([]*environments.Environment, error) {
75 return selectors.GetAllEnvironments(dependencies.Client)
76 },
77 }
78}
79
80func NewCmdCreate(f factory.Factory) *cobra.Command {
81 createFlags := NewCreateFlags()

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected