Skip to content

Commit

Permalink
fix: recognize --resolve flag in validate command (#5853)
Browse files Browse the repository at this point in the history
* fix: recognize `--resolve` flag in `validate` command

Prior to this change the flag was implemented but not considered as a valid one.

* docs: re-generate docs
  • Loading branch information
vvagaytsev committed Mar 19, 2024
1 parent 289d220 commit af514b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/src/commands/validate.ts
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
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

0 comments on commit af514b4

Please sign in to comment.