Skip to content

Commit

Permalink
bump version to 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Aug 5, 2021
1 parent ccd7ca0 commit 8e90649
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Unreleased
## [0.12.0] - 2021-08-06
## Features
- Add support for HTTPie's [Sessions](https://httpie.io/docs#sessions), see #125 (@ducaale)
- Send and display headers names as title case for non-HTTP/2 requests and responses, see #167 (@blyxxyz)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xh"
version = "0.11.0"
version = "0.12.0"
authors = ["ducaale <sharaf.13@hotmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions completions/_xh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ _xh() {
'--check-status[(default) Exit with an error status code if the server replies with an error]' \
'-F[Do follow redirects]' \
'--follow[Do follow redirects]' \
'--native-tls[Use the system TLS library instead of rustls (if enabled at compile time)]' \
'--https[Make HTTPS requests if not specified in the URL]' \
'-I[Do not attempt to read stdin]' \
'--ignore-stdin[Do not attempt to read stdin]' \
Expand All @@ -87,6 +88,7 @@ _xh() {
'--no-json[]' \
'--no-max-redirects[]' \
'--no-multipart[]' \
'--no-native-tls[]' \
'--no-offline[]' \
'--no-output[]' \
'--no-pretty[]' \
Expand Down
2 changes: 2 additions & 0 deletions completions/_xh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock {
[CompletionResult]::new('--check-status', 'check-status', [CompletionResultType]::ParameterName, '(default) Exit with an error status code if the server replies with an error')
[CompletionResult]::new('-F', 'F', [CompletionResultType]::ParameterName, 'Do follow redirects')
[CompletionResult]::new('--follow', 'follow', [CompletionResultType]::ParameterName, 'Do follow redirects')
[CompletionResult]::new('--native-tls', 'native-tls', [CompletionResultType]::ParameterName, 'Use the system TLS library instead of rustls (if enabled at compile time)')
[CompletionResult]::new('--https', 'https', [CompletionResultType]::ParameterName, 'Make HTTPS requests if not specified in the URL')
[CompletionResult]::new('-I', 'I', [CompletionResultType]::ParameterName, 'Do not attempt to read stdin')
[CompletionResult]::new('--ignore-stdin', 'ignore-stdin', [CompletionResultType]::ParameterName, 'Do not attempt to read stdin')
Expand All @@ -92,6 +93,7 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock {
[CompletionResult]::new('--no-json', 'no-json', [CompletionResultType]::ParameterName, 'no-json')
[CompletionResult]::new('--no-max-redirects', 'no-max-redirects', [CompletionResultType]::ParameterName, 'no-max-redirects')
[CompletionResult]::new('--no-multipart', 'no-multipart', [CompletionResultType]::ParameterName, 'no-multipart')
[CompletionResult]::new('--no-native-tls', 'no-native-tls', [CompletionResultType]::ParameterName, 'no-native-tls')
[CompletionResult]::new('--no-offline', 'no-offline', [CompletionResultType]::ParameterName, 'no-offline')
[CompletionResult]::new('--no-output', 'no-output', [CompletionResultType]::ParameterName, 'no-output')
[CompletionResult]::new('--no-pretty', 'no-pretty', [CompletionResultType]::ParameterName, 'no-pretty')
Expand Down
2 changes: 1 addition & 1 deletion completions/xh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 -o -A -a --json --form --multipart --headers --body --verbose --quiet --stream --download --continue --ignore-netrc --offline --check-status --follow --https --ignore-stdin --curl --curl-long --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-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 --output --session --session-read-only --auth-type --auth --bearer --max-redirects --timeout --proxy --verify --cert --cert-key --default-scheme <[METHOD] URL> <REQUEST_ITEM>... "
opts=" -j -f -m -h -b -v -q -S -d -c -F -I -V -s -p -o -A -a --json --form --multipart --headers --body --verbose --quiet --stream --download --continue --ignore-netrc --offline --check-status --follow --native-tls --https --ignore-stdin --curl --curl-long --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 --output --session --session-read-only --auth-type --auth --bearer --max-redirects --timeout --proxy --verify --cert --cert-key --default-scheme <[METHOD] URL> <REQUEST_ITEM>... "
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down
2 changes: 2 additions & 0 deletions completions/xh.fish
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ complete -c xh -l ignore-netrc -d 'Do not use credentials from .netrc'
complete -c xh -l offline -d 'Construct HTTP requests without sending them anywhere'
complete -c xh -l check-status -d '(default) Exit with an error status code if the server replies with an error'
complete -c xh -s F -l follow -d 'Do follow redirects'
complete -c xh -l native-tls -d 'Use the system TLS library instead of rustls (if enabled at compile time)'
complete -c xh -l https -d 'Make HTTPS requests if not specified in the URL'
complete -c xh -s I -l ignore-stdin -d 'Do not attempt to read stdin'
complete -c xh -l curl -d 'Print a translation to a `curl` command'
Expand All @@ -53,6 +54,7 @@ complete -c xh -l no-ignore-stdin
complete -c xh -l no-json
complete -c xh -l no-max-redirects
complete -c xh -l no-multipart
complete -c xh -l no-native-tls
complete -c xh -l no-offline
complete -c xh -l no-output
complete -c xh -l no-pretty
Expand Down
9 changes: 6 additions & 3 deletions doc/xh.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13.
.TH XH "1" "July 2021" "xh 0.11.0" "User Commands"
.TH XH "1" "August 2021" "xh 0.12.0" "User Commands"
.SH NAME
xh \- Friendly and fast tool for sending HTTP requests
.SH SYNOPSIS
Expand Down Expand Up @@ -115,6 +115,10 @@ If stdout is redirected then a warning is written to stderr.
.IP
Do follow redirects
.HP
\fB\-\-native\-tls\fR
.IP
Use the system TLS library instead of rustls (if enabled at compile time)
.HP
\fB\-\-https\fR
.IP
Make HTTPS requests if not specified in the URL
Expand Down Expand Up @@ -165,8 +169,7 @@ Save output to FILE instead of stdout
.IP
Create, or reuse and update a session.
.IP
Within a session, custom headers, auth credential, 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 <FILE>
.IP
Expand Down

0 comments on commit 8e90649

Please sign in to comment.