diff --git a/CHANGELOG.md b/CHANGELOG.md index 9554a5f4..4be47e25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [Unreleased] +## [0.13.0] - 2021-09-16 ### Features - Add _--all_ flag for printing intermediate requests and responses, see #137 (@ducaale) - Support customising what sections are printed from intermediary requests and responses diff --git a/Cargo.lock b/Cargo.lock index 08980949..c562acba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2918,7 +2918,7 @@ dependencies = [ [[package]] name = "xh" -version = "0.12.0" +version = "0.13.0" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index c486c08b..de95d6be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xh" -version = "0.12.0" +version = "0.13.0" authors = ["ducaale "] edition = "2018" license = "MIT" diff --git a/completions/_xh b/completions/_xh index 6e04913c..ee6e86d6 100644 --- a/completions/_xh +++ b/completions/_xh @@ -86,6 +86,7 @@ _xh() { '--no-follow[]' \ '--no-form[]' \ '--no-headers[]' \ +'--no-history-print[]' \ '--no-https[]' \ '--no-ignore-netrc[]' \ '--no-ignore-stdin[]' \ diff --git a/completions/_xh.ps1 b/completions/_xh.ps1 index 891c1d51..64424834 100644 --- a/completions/_xh.ps1 +++ b/completions/_xh.ps1 @@ -91,6 +91,7 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock { [CompletionResult]::new('--no-follow', 'no-follow', [CompletionResultType]::ParameterName, 'no-follow') [CompletionResult]::new('--no-form', 'no-form', [CompletionResultType]::ParameterName, 'no-form') [CompletionResult]::new('--no-headers', 'no-headers', [CompletionResultType]::ParameterName, 'no-headers') + [CompletionResult]::new('--no-history-print', 'no-history-print', [CompletionResultType]::ParameterName, 'no-history-print') [CompletionResult]::new('--no-https', 'no-https', [CompletionResultType]::ParameterName, 'no-https') [CompletionResult]::new('--no-ignore-netrc', 'no-ignore-netrc', [CompletionResultType]::ParameterName, 'no-ignore-netrc') [CompletionResult]::new('--no-ignore-stdin', 'no-ignore-stdin', [CompletionResultType]::ParameterName, 'no-ignore-stdin') diff --git a/completions/xh.bash b/completions/xh.bash index 3b2dc830..87e5c42d 100644 --- a/completions/xh.bash +++ b/completions/xh.bash @@ -20,7 +20,7 @@ _xh() { case "${cmd}" in xh) - opts=" -j -f -m -h -b -v -q -S -d -c -F -I -V -s -p -P -o -A -a --json --form --multipart --headers --body --verbose --all --quiet --stream --download --continue --ignore-netrc --offline --check-status --follow --native-tls --https --ignore-stdin --curl --curl-long --no-all --no-auth --no-auth-type --no-bearer --no-body --no-cert --no-cert-key --no-check-status --no-continue --no-curl --no-curl-long --no-default-scheme --no-download --no-follow --no-form --no-headers --no-https --no-ignore-netrc --no-ignore-stdin --no-json --no-max-redirects --no-multipart --no-native-tls --no-offline --no-output --no-pretty --no-print --no-proxy --no-quiet --no-session --no-session-read-only --no-stream --no-style --no-timeout --no-verbose --no-verify --help --version --pretty --style --print --history-print --output --session --session-read-only --auth-type --auth --bearer --max-redirects --timeout --proxy --verify --cert --cert-key --default-scheme <[METHOD] URL> ... " + opts=" -j -f -m -h -b -v -q -S -d -c -F -I -V -s -p -P -o -A -a --json --form --multipart --headers --body --verbose --all --quiet --stream --download --continue --ignore-netrc --offline --check-status --follow --native-tls --https --ignore-stdin --curl --curl-long --no-all --no-auth --no-auth-type --no-bearer --no-body --no-cert --no-cert-key --no-check-status --no-continue --no-curl --no-curl-long --no-default-scheme --no-download --no-follow --no-form --no-headers --no-history-print --no-https --no-ignore-netrc --no-ignore-stdin --no-json --no-max-redirects --no-multipart --no-native-tls --no-offline --no-output --no-pretty --no-print --no-proxy --no-quiet --no-session --no-session-read-only --no-stream --no-style --no-timeout --no-verbose --no-verify --help --version --pretty --style --print --history-print --output --session --session-read-only --auth-type --auth --bearer --max-redirects --timeout --proxy --verify --cert --cert-key --default-scheme <[METHOD] URL> ... " if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 diff --git a/completions/xh.fish b/completions/xh.fish index f659b161..a4f4ac36 100644 --- a/completions/xh.fish +++ b/completions/xh.fish @@ -51,6 +51,7 @@ complete -c xh -l no-download complete -c xh -l no-follow complete -c xh -l no-form complete -c xh -l no-headers +complete -c xh -l no-history-print complete -c xh -l no-https complete -c xh -l no-ignore-netrc complete -c xh -l no-ignore-stdin diff --git a/doc/xh.1 b/doc/xh.1 index 21b6e1a5..5fd7363c 100644 --- a/doc/xh.1 +++ b/doc/xh.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. -.TH XH "1" "September 2021" "xh 0.12.0" "User Commands" +.TH XH "1" "September 2021" "xh 0.13.0" "User Commands" .SH NAME xh \- Friendly and fast tool for sending HTTP requests .SH SYNOPSIS @@ -111,8 +111,7 @@ Construct HTTP requests without sending them anywhere .IP (default) Exit with an error status code if the server replies with an error. .IP -The exit code will be 4 on 4xx (Client Error), 5 on 5xx (Server Error), or 3 on 3xx (Redirect) if \fB\-\-follow\fR -isn't set. +The exit code will be 4 on 4xx (Client Error), 5 on 5xx (Server Error), or 3 on 3xx (Redirect) if \fB\-\-follow\fR isn't set. .IP If stdout is redirected then a warning is written to stderr. .HP @@ -178,8 +177,7 @@ Save output to FILE instead of stdout .IP Create, or reuse and update a session. .IP -Within a session, custom headers, auth credentials, as well as any cookies sent by the server persist -between requests. +Within a session, custom headers, auth credentials, as well as any cookies sent by the server persist between requests. .HP \fB\-\-session\-read\-only\fR .IP @@ -211,13 +209,11 @@ Use a proxy for a protocol. For example: `\-\-proxy https:http://proxy.host:8080 .IP PROTOCOL can be `http`, `https` or `all`. .IP -If your proxy requires credentials, put them in the URL, like so: `\-\-proxy -http:socks5://user:password@proxy.host:8000`. +If your proxy requires credentials, put them in the URL, like so: `\-\-proxy http:socks5://user:password@proxy.host:8000`. .IP You can specify proxies for multiple protocols by repeating this option. .IP -The environment variables `http_proxy` and `https_proxy` can also be used, but are completely ignored if -\fB\-\-proxy\fR is passed. +The environment variables `http_proxy` and `https_proxy` can also be used, but are completely ignored if \fB\-\-proxy\fR is passed. .HP \fB\-\-verify\fR .IP