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

Method Setup

command/v7/apply_manifest_command.go:34–49  ·  view source on GitHub ↗
(config command.Config, ui command.UI)

Source from the content-addressed store, hash-verified

32}
33
34func (cmd *ApplyManifestCommand) Setup(config command.Config, ui command.UI) error {
35 cmd.ManifestLocator = manifestparser.NewLocator()
36 cmd.ManifestParser = manifestparser.ManifestParser{}
37 cmd.DiffDisplayer = &shared.ManifestDiffDisplayer{
38 UI: ui,
39 RedactEnv: cmd.RedactEnv,
40 }
41
42 currentDir, err := os.Getwd()
43 if err != nil {
44 return err
45 }
46 cmd.CWD = currentDir
47
48 return cmd.BaseCommand.Setup(config, ui)
49}
50
51func (cmd ApplyManifestCommand) Execute(args []string) error {
52 err := cmd.SharedActor.CheckTarget(true, true)

Callers

nothing calls this directly

Calls 2

NewLocatorFunction · 0.92
SetupMethod · 0.65

Tested by

no test coverage detected