diff options
author | Guillaume Pasquet <dev@etenil.net> | 2022-02-24 23:43:52 +0000 |
---|---|---|
committer | Guillaume Pasquet <dev@etenil.net> | 2022-02-24 23:43:52 +0000 |
commit | afb40e676d4aa097dc5f17d3fd021c06eaf6aa72 (patch) | |
tree | 48396b2e533825ab0412ff452dd695973fe16be5 | |
parent | 3517f9d9ff69eebae14e32a3b1550bd920ea3238 (diff) |
Bump to v0.2.0
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -1,6 +1,6 @@ [package] name = "barb" -version = "0.1.5" +version = "0.2.0" edition = "2021" license = "GPL-3.0-or-later" description = "Command-line tool to perform file-based HTTP(s) requests." @@ -8,7 +8,7 @@ Barb is a file-based API query tool that works nicely with version control and f ## Example usage ``` -barb <file 1> <file 2> ... <file n> +barb [options] <file 1> <file 2> ... <file n> ``` ### CLI options @@ -18,6 +18,7 @@ barb <file 1> <file 2> ... <file n> - `-h, --headers`: Only print the response headers - `-r, --raw`: Don't format the response body - `-V, --version`: Print the software version +- `-n, --no-color`: Don't use color output ## Barb format @@ -26,6 +27,7 @@ Barb uses a custom file format to perform requests. Each file contains _one_ req ``` #POST^http://my-blog.com/posts #Authorization: TOKEN {API_TOKEN} +#|jq.filter { "title": "A post", @@ -68,15 +70,13 @@ There can be none or many headers. ### Filter -!!! Not operational at this time - -Barb will support JQ filtering of the response body. This has the following format: +Barb supports JQ filtering of the response body. This has the following format: ``` #|<JQ FILTER> ``` -The `JQ FILTER` supports variable substitution. +The `JQ FILTER` supports variable substitution. Refer to the [JQ manual](https://stedolan.github.io/jq/manual/#Basicfilters) for more information on the filters and their syntax. ### Body |