MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / executeInSession

Method executeInSession

commands/action.go:72–85  ·  view source on GitHub ↗
(operationID string, mtaClient mtaclient.MtaClientOperations)

Source from the content-addressed store, hash-verified

70}
71
72func (a *action) executeInSession(operationID string, mtaClient mtaclient.MtaClientOperations) ExecutionStatus {
73 if a.verbosityLevel == VerbosityLevelVERBOSE {
74 ui.Say("Executing action %q on operation %s...", a.actionID, terminal.EntityNameColor(operationID))
75 }
76 _, err := mtaClient.ExecuteAction(operationID, a.actionID)
77 if err != nil {
78 ui.Failed("Could not execute action %q on operation %s: %s", a.actionID, terminal.EntityNameColor(operationID), err)
79 return Failure
80 }
81 if a.verbosityLevel == VerbosityLevelVERBOSE {
82 ui.Ok()
83 }
84 return Success
85}
86
87type monitoringAction struct {
88 action

Callers 2

ExecuteMethod · 0.95
ExecuteMethod · 0.80

Calls 4

SayFunction · 0.92
FailedFunction · 0.92
OkFunction · 0.92
ExecuteActionMethod · 0.65

Tested by

no test coverage detected