Skip to content

Commit

Permalink
Update version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteinge committed Nov 30, 2018
1 parent 6a7e79d commit dff8667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Flags _must_ be the first argument to `ok.sh`, before `command`.
* [_all_funcs](#_all_funcs)
* [_log](#_log)
* [_helptext](#_helptext)
* [_awk_map](#_awk_map)
* [_awk_blacklist](#_awk_blacklist)
* [_format_json](#_format_json)
* [_format_urlencode](#_format_urlencode)
* [_filter_json](#_filter_json)
Expand Down Expand Up @@ -187,15 +187,9 @@ Input
* (stdin)
The text of a function body to parse.

### _awk_map
### _awk_blacklist

Invoke awk with a function that will empty the ENVIRON map

Positional arguments

* `prg="$1"`

The body of an awk program to run
Some awks will populate ENVIRON with defaults; print those defaults

### _format_json

Expand All @@ -204,7 +198,7 @@ Create formatted JSON from name=value pairs
Usage:
```
_format_json foo=Foo bar=123 baz=true qux=Qux=Qux quux='Multi-line
string' quuz=\'5.20170918\' corge=$(ok.sh _format_json grault=Grault)
string' quuz=\'5.20170918\' corge="$(ok.sh _format_json grault=Grault)"
```

Return:
Expand All @@ -223,6 +217,7 @@ Return:
```

Tries not to quote numbers, booleans, nulls, or nested structures.
Note, nested structures must be quoted since the output contains spaces.
If jq is installed it will also validate the output.

Positional arguments
Expand Down
2 changes: 1 addition & 1 deletion ok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# Output some text in Markdown format.

export NAME=$(basename "$0")
export VERSION='0.1.0'
export VERSION='0.4.0'

export OK_SH_URL=${OK_SH_URL:-'https://api.github.com'}
export OK_SH_ACCEPT=${OK_SH_ACCEPT:-'application/vnd.github.v3+json'}
Expand Down

0 comments on commit dff8667

Please sign in to comment.