-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update Makefile to generate docs
- Loading branch information
Showing
4 changed files
with
169 additions
and
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
JSON-TO-ENV(1) User Commands JSON-TO-ENV(1) | ||
|
||
|
||
|
||
NNAAMMEE | ||
json-to-env - manual page for json-to-env 0.1.0 | ||
|
||
SSYYNNOOPPSSIISS | ||
jjssoonn--ttoo--eennvv [_-_h_v_x] [_-_f] _<_f_i_l_e_> | ||
jjssoonn--ttoo--eennvv [_-_h_v_x] [_-_f] _- | ||
jjssoonn--ttoo--eennvv [_-_h_v_x] | ||
|
||
DDEESSCCRRIIPPTTIIOONN | ||
json-to-env - Converts a JSON file into POSIX shell environment vari‐ | ||
able declarations Each `key`: `value` pair will be converted to a | ||
`key=value` statement. If <file> is not provided or is `-`, it will | ||
read from stdin. | ||
|
||
OOPPTTIIOONNSS | ||
--ff, ----ffiillee | ||
The path to the file to read from. | ||
|
||
--hh, ----hheellpp | ||
Show this help text. | ||
|
||
--vv, ----vveerrssiioonn | ||
Show the version. | ||
|
||
--xx, ----eexxppoorrtt | ||
Prepend 'export' to the generated environment variables. | ||
|
||
EEXXAAMMPPLLEESS | ||
json-to-env /path/to/file.json | ||
Regular usage | ||
|
||
cat /path/to/file.json | json-to-env | ||
Same as above | ||
|
||
json-to-env -x /path/to/file.jsoni | ||
Export the variables (`export VAR=VALUE`) | ||
|
||
json-to-env -f /path/to/file.json | ||
Can use the -f option | ||
|
||
json-to-env /path/to/file.jsoni | ||
Or simply a positional argument | ||
|
||
json-to-env <<< "{"VAR":"VALUE"}" | ||
JSON literal | ||
|
||
|
||
|
||
json-to-env 0.1.0 March 2022 JSON-TO-ENV(1) |