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

Method sendPluginMetadataToCliServer

plugin/cli_connection.go:34–51  ·  view source on GitHub ↗
(metadata PluginMetadata)

Source from the content-addressed store, hash-verified

32}
33
34func (c *cliConnection) sendPluginMetadataToCliServer(metadata PluginMetadata) {
35 var success bool
36
37 err := c.withClientDo(func(client *rpc.Client) error {
38 return client.Call("CliRpcCmd.SetPluginMetadata", metadata, &success)
39 })
40
41 if err != nil {
42 fmt.Println(err)
43 os.Exit(1)
44 }
45
46 if !success {
47 os.Exit(1)
48 }
49
50 os.Exit(0)
51}
52
53func (c *cliConnection) isMinCliVersion(version string) bool {
54 var result bool

Callers 1

StartFunction · 0.80

Calls 3

withClientDoMethod · 0.95
PrintlnMethod · 0.65
ExitMethod · 0.65

Tested by

no test coverage detected