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

Method Execute

command/common/version_command.go:17–25  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

15}
16
17func (cmd VersionCommand) Execute(args []string) error {
18 cmd.UI.DisplayText("{{.BinaryName}} version {{.VersionString}}",
19 map[string]interface{}{
20 "BinaryName": cmd.Config.BinaryName(),
21 "VersionString": cmd.Config.BinaryVersion(),
22 })
23
24 return nil
25}

Callers

nothing calls this directly

Calls 3

DisplayTextMethod · 0.65
BinaryNameMethod · 0.65
BinaryVersionMethod · 0.65

Tested by

no test coverage detected