MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Execute

Method Execute

cf/commands/space/space_ssh_allowed.go:57–66  ·  view source on GitHub ↗
(fc flags.FlagContext)

Source from the content-addressed store, hash-verified

55}
56
57func (cmd *SSHAllowed) Execute(fc flags.FlagContext) error {
58 space := cmd.spaceReq.GetSpace()
59
60 if space.AllowSSH {
61 cmd.ui.Say(fmt.Sprintf(T("ssh support is enabled in space ")+"'%s'", space.Name))
62 } else {
63 cmd.ui.Say(fmt.Sprintf(T("ssh support is disabled in space ")+"'%s'", space.Name))
64 }
65 return nil
66}

Callers

nothing calls this directly

Calls 2

GetSpaceMethod · 0.65
SayMethod · 0.65

Tested by

no test coverage detected