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

Function PromptMissing

pkg/cmd/worker/ssh/create/create.go:148–185  ·  view source on GitHub ↗
(opts *CreateOptions)

Source from the content-addressed store, hash-verified

146}
147
148func PromptMissing(opts *CreateOptions) error {
149 err := question.AskName(opts.Ask, "", "SSH", &opts.Name.Value)
150 if err != nil {
151 return err
152 }
153
154 err = shared.PromptForWorkerPools(opts.WorkerPoolOptions, opts.WorkerPoolFlags)
155 if err != nil {
156 return err
157 }
158
159 err = machinescommon.PromptForMachinePolicy(opts.CreateTargetMachinePolicyOptions, opts.CreateTargetMachinePolicyFlags)
160 if err != nil {
161 return err
162 }
163
164 err = machinescommon.PromptForSshAccount(opts.SshCommonOptions, opts.SshCommonFlags)
165 if err != nil {
166 return err
167 }
168
169 err = machinescommon.PromptForSshEndpoint(opts.SshCommonOptions, opts.SshCommonFlags, "worker")
170 if err != nil {
171 return err
172 }
173
174 err = machinescommon.PromptForProxy(opts.CreateTargetProxyOptions, opts.CreateTargetProxyFlags, "SSH worker")
175 if err != nil {
176 return err
177 }
178
179 err = machinescommon.PromptForDotNetConfig(opts.SshCommonOptions, opts.SshCommonFlags, "worker")
180 if err != nil {
181 return err
182 }
183
184 return nil
185}

Callers 1

createRunFunction · 0.70

Calls 7

AskNameFunction · 0.92
PromptForWorkerPoolsFunction · 0.92
PromptForMachinePolicyFunction · 0.92
PromptForSshAccountFunction · 0.92
PromptForSshEndpointFunction · 0.92
PromptForProxyFunction · 0.92
PromptForDotNetConfigFunction · 0.92

Tested by

no test coverage detected