(config command.Config, ui command.UI)
| 32 | } |
| 33 | |
| 34 | func (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 | |
| 51 | func (cmd ApplyManifestCommand) Execute(args []string) error { |
| 52 | err := cmd.SharedActor.CheckTarget(true, true) |
nothing calls this directly
no test coverage detected