aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2022-02-24 23:43:52 +0000
committerGuillaume Pasquet <dev@etenil.net>2022-02-24 23:43:52 +0000
commitafb40e676d4aa097dc5f17d3fd021c06eaf6aa72 (patch)
tree48396b2e533825ab0412ff452dd695973fe16be5
parent3517f9d9ff69eebae14e32a3b1550bd920ea3238 (diff)
Bump to v0.2.0
-rw-r--r--Cargo.toml2
-rw-r--r--README.md10
2 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 9879254..a761589 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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."
diff --git a/README.md b/README.md
index a47d00d..3f799d0 100644
--- a/README.md
+++ b/README.md
@@ -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