- Documentation cleanup.
- Documentation cleanup.
- Bump copyrights to 2022.
- Removed miscellaneous unnecessary files.
- Cleanup of Makefile.
- Documentation cleanup.
- Documentation cleanup.
- Bump copyrights to 2021.
- Changed text from
set is usingtojson formatterinjsonlite_info(). - Changed text from
data directory pathtodata directoryinjsonlite_info(). - Show a notice when calling
jsonlite_info()if using the slowest json formatterpython -m json.tool.
- Fixed a bug where providing invalid json to
setwould write an empty file with a uuid filename to the data directory. Now providing invalid json toseterrors with no file written to the data directory.
- (BREAKING) Deprecated
JSONLITE_PATHenvironment variable. UseJSONLITE_DATA_DIRinstead. - Added default command to
README.mddocumentation. - When there is no data directory and
dropis invoked, hard code an exit code of0instead of using$?. - Documentation cleanup.
- Bump copyrights to 2017.
- The
setcommand now supports piping into it. Closes issue #14.
echo '{"key":"value"}' | jsonlite set
4472B861-4C10-4C0A-A63B-E5D45AA679C0
cat foobar.json | jsonlite set
9DF4DC1F-121E-46DC-B580-E1663B645AED
- Documentation cleanup.
- Running
jsonlitewith no command displays the current version,JSONLITE_PATHenvironment variable, and invokes thehelpcommand.
- Added a new command
countwhich displays the total number of json documents in the database. - Return exit codes changed to ovoid using
1and2which are reserved. Closes issue #13.
0 => Success
3 => Invalid command
4 => Missing required argument json document
5 => Missing required argument document id
6 => Invalid argument document id
7 => Failure confirming drop
- Invoking
jsonlitewithout any commands now invokes thehelpcommand. - Updated the
dropcommand confirmation prompt. - Added a new test
tests/set_500.bash. - Documentation cleanup.
- Documentation cleanup. No code changes.
- Globally replaced text JSONLite to JSONlite (lowercase l).
- Shellcheck and cleanup.
- Documentation cleanup.
- Documentation cleanup. No code changes.
0.6.0 - 9/26/2015 (thanks josegonzalez)
-
You can now define the data directory path using the
JSONLITE_PATHenvironment variable. It defaults to$PWD/jsonlite.data. -
JSONlite has been transformed such that it can be used as a library. To do so, simply source in all the methods at the top of your script.
-
Support for yajl
json_reformatand jq pretty printing when setting. JSONlite will automatically detect if you have either, if not, it falls back topython -m json.tool.json_reformatandjqprovide roughly a 3x performance improvement setting documents. -
Added
helpcommand. -
Bashisms and best practice cleanup.
-
Added
Makefileand.travis.yml.
-
Changed the regular expression in function
is_valid_uuidto^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$. -
Changed test from 1,000 to 500 iterations.
0.4.1 - 9/22/2015 (thanks cbgbt)
- Support distros where
uuidgenis lowercase by forcing uppercase.awk '{print toupper($0)}'
- Renamed the
destroycommand todrop.
-
Renamed
jsonlitetojsonlite.shto clearify it is a shell script. -
Updated the installation section in
README.mdrelated to creating the symbolic link. The newlncommand is:
ln -s $PWD/jsonlite.sh /usr/local/bin/jsonlite
-
getanddeleteare now idempotent. For example, if you callgetand pass a uuid that doesn't exist, no error code is returned. Instead a 0 exit code is returned and nothing is written tostdout. -
Now validates document id arguments passed into
getanddeletevia regex. If invalid, a exit code of 3 is returned. Closes issue #1. -
Return exit codes changed and standardized.
0 => Success
1 => Missing required argument json document
2 => Missing required argument document id
3 => Invalid argument document id
4 => Failure confirming destroy