diff --git a/core/src/commands/validate.ts b/core/src/commands/validate.ts index 8ee461237f..02f32eabdd 100644 --- a/core/src/commands/validate.ts +++ b/core/src/commands/validate.ts @@ -47,6 +47,8 @@ export class ValidateCommand extends Command<{}, Opts> { garden validate --resolve # fully resolve all actions ` + override options = validateOpts + override printHeader({ log }) { printHeader(log, "Validate", "✔️") } diff --git a/docs/reference/commands.md b/docs/reference/commands.md index 92ffc59e16..ce357c638b 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -5880,8 +5880,13 @@ Examples: #### Usage - garden validate + garden validate [options] +#### Options + +| Argument | Alias | Type | Description | +| -------- | ----- | ---- | ----------- | + | `--resolve` | | array:string | Fully resolve a specific action, including references to runtime outputs from other actions. Actions should be specified as `<kind>.<name>` (e.g. `deploy.my-service` or `build.my-image`). This option can be specified multiple times to fully resolve multiple actions. Use * to fully resolve all actions. Note that this may result in actions being executed during validation (e.g. if a runtime output is referenced by another action, it will be executed in order to fully resolve the config). In such cases, we recommend not using this option. ### garden version