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

Function NewCreateOptions

pkg/cmd/account/ssh/create/create.go:55–63  ·  view source on GitHub ↗
(flags *CreateFlags, dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

53}
54
55func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions {
56 return &CreateOptions{
57 CreateFlags: flags,
58 Dependencies: dependencies,
59 GetAllEnvironmentsCallback: func() ([]*environments.Environment, error) {
60 return selectors.GetAllEnvironments(dependencies.Client)
61 },
62 }
63}
64
65func NewCmdCreate(f factory.Factory) *cobra.Command {
66 createFlags := NewCreateFlags()

Callers 1

NewCmdCreateFunction · 0.70

Calls 1

GetAllEnvironmentsFunction · 0.92

Tested by

no test coverage detected