MCPcopy
hub / github.com/cloudfoundry/cli / GetOutputAndReset

Method GetOutputAndReset

plugin/rpc/cli_rpc_server.go:202–206  ·  view source on GitHub ↗
(args bool, retVal *[]string)

Source from the content-addressed store, hash-verified

200}
201
202func (cmd *CliRpcCmd) GetOutputAndReset(args bool, retVal *[]string) error {
203 v := strings.TrimSuffix(cmd.outputBucket.String(), "\n")
204 *retVal = strings.Split(v, "\n")
205 return nil
206}
207
208func (cmd *CliRpcCmd) GetCurrentOrg(args string, retVal *plugin_models.Organization) error {
209 retVal.Name = cmd.cliConfig.OrganizationFields().Name

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected