@@ -38,18 +38,18 @@ export JSONLITE_DATA_DIR=/tmp/jsonlite.data
38
38
39
39
> set \< json\> - Writes a json document and returns the document id
40
40
41
- ```` shell
41
+ ````
42
42
➜ jsonlite set '{"name":"John Doe","active":true,"permissions":{"read":true,"write":false}}'
43
43
666B81D6-3F8A-4D57-BA3F-11FA8FC47246
44
44
````
45
45
46
46
` set ` also supports piping into it:
47
47
48
- ```` shell
48
+ ````
49
49
echo '{"key":"value"}' | jsonlite set
50
50
4472B861-4C10-4C0A-A63B-E5D45AA679C0
51
51
````
52
- ```` shell
52
+ ````
53
53
jsonlite set < file.json
54
54
9DF4DC1F-121E-46DC-B580-E1663B645AED
55
55
````
@@ -58,7 +58,7 @@ jsonlite set < file.json
58
58
59
59
> get \< document-id\> - Retrieves a json document by document id
60
60
61
- ```` shell
61
+ ````
62
62
➜ jsonlite get 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
63
63
{
64
64
"active": true,
@@ -74,7 +74,7 @@ jsonlite set < file.json
74
74
75
75
> count - Total number of json documents in the database
76
76
77
- ```` shell
77
+ ````
78
78
➜ jsonlite count
79
79
293
80
80
````
@@ -83,28 +83,28 @@ jsonlite set < file.json
83
83
84
84
> delete \< document-id\> - Deletes a json document by document id
85
85
86
- ```` shell
86
+ ````
87
87
➜ jsonlite delete 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
88
88
````
89
89
90
90
### drop
91
91
92
92
> drop (--force) - Drops the database
93
93
94
- ```` shell
94
+ ````
95
95
➜ jsonlite drop
96
96
Drop database '/tmp/jsonlite.data'? [Y/n] Y
97
97
````
98
98
99
- ```` shell
99
+ ````
100
100
➜ jsonlite drop --force
101
101
````
102
102
103
103
### help
104
104
105
105
> help - Displays help
106
106
107
- ```` shell
107
+ ````
108
108
➜ jsonlite help
109
109
Usage: jsonlite command <command-specific-options>
110
110
@@ -122,7 +122,7 @@ Usage: jsonlite command <command-specific-options>
122
122
123
123
> version - Displays the current version
124
124
125
- ```` shell
125
+ ````
126
126
➜ jsonlite version
127
127
1.1.4
128
128
````
@@ -131,7 +131,7 @@ Usage: jsonlite command <command-specific-options>
131
131
132
132
> default - Displays the current version, configuration, and help
133
133
134
- ``` shell
134
+ ```
135
135
➜ jsonlite
136
136
JSONlite 1.1.4
137
137
json formatter: json_reformat (fastest)
0 commit comments