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

Method Setup

command/v7/logs_command.go:27–35  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

25}
26
27func (cmd *LogsCommand) Setup(config command.Config, ui command.UI) error {
28 err := cmd.BaseCommand.Setup(config, ui)
29 if err != nil {
30 return err
31 }
32
33 cmd.LogCacheClient, err = logcache.NewClient(config.LogCacheEndpoint(), config, ui, v7action.NewDefaultKubernetesConfigGetter())
34 return err
35}
36
37func (cmd LogsCommand) Execute(args []string) error {
38 err := cmd.SharedActor.CheckTarget(true, true)

Callers

nothing calls this directly

Calls 4

NewClientFunction · 0.92
SetupMethod · 0.65
LogCacheEndpointMethod · 0.65

Tested by

no test coverage detected