From afb40e676d4aa097dc5f17d3fd021c06eaf6aa72 Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Thu, 24 Feb 2022 23:43:52 +0000 Subject: Bump to v0.2.0 --- Cargo.toml | 2 +- README.md | 10 +++++----- 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 ... +barb [options] ... ``` ### CLI options @@ -18,6 +18,7 @@ barb ... - `-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: ``` #| ``` -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 -- cgit v1.2.3