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

Function NewCliConnection

plugin/cli_connection.go:18–22  ·  view source on GitHub ↗
(cliServerPort string)

Source from the content-addressed store, hash-verified

16}
17
18func NewCliConnection(cliServerPort string) *cliConnection {
19 return &cliConnection{
20 cliServerPort: cliServerPort,
21 }
22}
23
24func (c *cliConnection) withClientDo(f func(client *rpc.Client) error) error {
25 client, err := rpc.Dial("tcp", "127.0.0.1:"+c.cliServerPort)

Callers 1

StartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected