Skip to content

Commit 37af673

Browse files
committed
Update changelog
1 parent 45c1bb9 commit 37af673

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## UNRELEASED
55

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

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ echo "Total: $(($price * $TAX))"
154154
~~~
155155
```
156156

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

159159
**Example:**
160160

161-
`````markdown
161+
```markdown
162162
## print (text)
163163

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

173-
```sh
173+
~~~sh
174174
COLOR=${color:RED} # Fallback to RED if not supplied
175175
echo "$COLOR: $text"
176+
~~~
176177
```
177-
`````
178178

179179
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.
180180

0 commit comments

Comments
 (0)