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

Function createRun

pkg/cmd/projectgroup/create/create.go:94–110  ·  view source on GitHub ↗
(opts *CreateOptions)

Source from the content-addressed store, hash-verified

92}
93
94func createRun(opts *CreateOptions) error {
95 if !opts.NoPrompt {
96 if err := PromptMissing(opts); err != nil {
97 return err
98 }
99 }
100
101 if err := opts.Commit(); err != nil {
102 return err
103 }
104 if !opts.NoPrompt {
105 fmt.Fprint(opts.Out, "Automation Command: ")
106 opts.GenerateAutomationCmd()
107 }
108
109 return nil
110}
111
112func PromptMissing(opts *CreateOptions) error {
113 messagePrefix := ""

Callers 1

NewCmdCreateFunction · 0.70

Calls 3

PromptMissingFunction · 0.70
CommitMethod · 0.65
GenerateAutomationCmdMethod · 0.65

Tested by

no test coverage detected