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

Method isMinCliVersion

plugin/cli_connection.go:53–66  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

51}
52
53func (c *cliConnection) isMinCliVersion(version string) bool {
54 var result bool
55
56 err := c.withClientDo(func(client *rpc.Client) error {
57 return client.Call("CliRpcCmd.IsMinCliVersion", version, &result)
58 })
59
60 if err != nil {
61 fmt.Println(err)
62 os.Exit(1)
63 }
64
65 return result
66}
67
68func (c *cliConnection) CliCommandWithoutTerminalOutput(args ...string) ([]string, error) {
69 return c.callCliCommand(true, args...)

Callers 1

StartFunction · 0.80

Calls 3

withClientDoMethod · 0.95
PrintlnMethod · 0.65
ExitMethod · 0.65

Tested by

no test coverage detected