Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdeichert committed Jul 8, 2024
1 parent 45c1bb9 commit 37af673
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## UNRELEASED

* ci: Fix php tests on macos actions runner [#110](https://github.com/jacobdeichert/mask/pull/110)
* Add choices list for flags [#111](https://github.com/jacobdeichert/mask/pull/111) ([@lovejia2022](https://github.com/lovejia2022))

## v0.11.4 (2023-10-15)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ echo "Total: $(($price * $TAX))"
~~~
```

If you add a `choices` list, `mask` will validate if the flag value is one of them.
Coming in v0.11.5: If you add a `choices` list, `mask` will validate if the flag value is one of them.

**Example:**

`````markdown
```markdown
## print (text)

> Print text with color
Expand All @@ -170,11 +170,11 @@ If you add a `choices` list, `mask` will validate if the flag value is one of th
* choices: RED, BLUE, GREEN
* desc: Color of the text.

```sh
~~~sh
COLOR=${color:RED} # Fallback to RED if not supplied
echo "$COLOR: $text"
~~~
```
`````

If you exclude the `type` field, `mask` will treat it as a `boolean` flag. If the flag is passed, its environment variable will be `"true"`, otherwise it will be unset/non-existent.

Expand Down

0 comments on commit 37af673

Please sign in to comment.