Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: recognize --resolve flag in validate command #5853

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/commands/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", "✔️")
}
Expand Down
7 changes: 6 additions & 1 deletion docs/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 &#x60;&lt;kind&gt;.&lt;name&gt;&#x60; (e.g. &#x60;deploy.my-service&#x60; or &#x60;build.my-image&#x60;). 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
Expand Down