-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): fix handling of empty option values
To ensure that `command.params` behaves intuitively in template strings, we don't add option keys with `null`/`undefined` values to the command info object (which gets passed to `command.params` in template strings). For example, we don't want `${command.params contains 'dev-mode'}` to be `true` when running `garden deploy` unless the `--dev` flag was actually passed (since the user would expect the option value to be an array if present).
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters