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

Function NewCreateOptions

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

Source from the content-addressed store, hash-verified

47}
48
49func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions {
50 return &CreateOptions{
51 CreateFlags: flags,
52 Dependencies: dependencies,
53 GetAllEnvironmentsCallback: func() ([]*environments.Environment, error) {
54 return selectors.GetAllEnvironments(dependencies.Client)
55 },
56 }
57}
58
59func NewCmdCreate(f factory.Factory) *cobra.Command {
60 createFlags := NewCreateFlags()

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected