Skip to content

Commit

Permalink
bump version to v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Jan 28, 2024
1 parent 135ecd2 commit 9580a90
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 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.21.0] - 2024-01-28
### Features
- Display remote address in metadata when `-vv` or `--meta` flag is used,
see #348 (@zuisong)
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.20.1"
version = "0.21.0"
authors = ["ducaale <[email protected]>"]
edition = "2021"
rust-version = "1.70.0"
Expand Down
6 changes: 5 additions & 1 deletion completions/xh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@ _xh() {
esac
}

complete -F _xh -o bashdefault -o default xh
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
complete -F _xh -o nosort -o bashdefault -o default xh
else
complete -F _xh -o bashdefault -o default xh
fi
10 changes: 5 additions & 5 deletions completions/xh.fish
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
complete -c xh -l raw -d 'Pass raw request data without extra processing' -r
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "{all (default) Enable both coloring and formatting,colors Apply syntax highlighting to output,format Pretty-print json and sort headers,none Disable both coloring and formatting}"
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "{all '(default) Enable both coloring and formatting',colors 'Apply syntax highlighting to output',format 'Pretty-print json and sort headers',none 'Disable both coloring and formatting'}"
complete -c xh -l format-options -d 'Set output formatting options' -r
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "{auto ,solarized ,monokai ,fruity }"
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "{auto '',solarized '',monokai '',fruity ''}"
complete -c xh -l response-charset -d 'Override the response encoding for terminal display purposes' -r
complete -c xh -l response-mime -d 'Override the response mime type for coloring and formatting for the terminal' -r
complete -c xh -s p -l print -d 'String specifying what the output should contain' -r
complete -c xh -s P -l history-print -d 'The same as --print but applies only to intermediary requests/responses' -r
complete -c xh -s o -l output -d 'Save output to FILE instead of stdout' -r -F
complete -c xh -l session -d 'Create, or reuse and update a session' -r
complete -c xh -l session-read-only -d 'Create or read a session without updating it form the request/response exchange' -r
complete -c xh -s A -l auth-type -d 'Specify the auth mechanism' -r -f -a "{basic ,bearer ,digest }"
complete -c xh -s A -l auth-type -d 'Specify the auth mechanism' -r -f -a "{basic '',bearer '',digest ''}"
complete -c xh -s a -l auth -d 'Authenticate as USER with PASS (-A basic|digest) or with TOKEN (-A bearer)' -r
complete -c xh -l bearer -d 'Authenticate with a bearer token' -r
complete -c xh -l max-redirects -d 'Number of redirects to follow. Only respected if --follow is used' -r
Expand All @@ -18,9 +18,9 @@ complete -c xh -l proxy -d 'Use a proxy for a protocol. For example: --proxy htt
complete -c xh -l verify -d 'If "no", skip SSL verification. If a file path, use it as a CA bundle' -r
complete -c xh -l cert -d 'Use a client side certificate for SSL' -r -F
complete -c xh -l cert-key -d 'A private key file to use with --cert' -r -F
complete -c xh -l ssl -d 'Force a particular TLS version' -r -f -a "{auto ,tls1 ,tls1.1 ,tls1.2 ,tls1.3 }"
complete -c xh -l ssl -d 'Force a particular TLS version' -r -f -a "{auto '',tls1 '',tls1.1 '',tls1.2 '',tls1.3 ''}"
complete -c xh -l default-scheme -d 'The default scheme to use if not specified in the URL' -r
complete -c xh -l http-version -d 'HTTP version to use' -r -f -a "{1.0 ,1.1 ,2 }"
complete -c xh -l http-version -d 'HTTP version to use' -r -f -a "{1.0 '',1.1 '',2 ''}"
complete -c xh -l resolve -d 'Override DNS resolution for specific domain to a custom IP' -r
complete -c xh -l interface -d 'Bind to a network interface or local IP address' -r
complete -c xh -s j -l json -d '(default) Serialize data items from the command line as a JSON object'
Expand Down
2 changes: 1 addition & 1 deletion doc/xh.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH XH 1 2023-11-19 0.20.1 "User Commands"
.TH XH 1 2024-01-28 0.21.0 "User Commands"

.SH NAME
xh \- Friendly and fast tool for sending HTTP requests
Expand Down

0 comments on commit 9580a90

Please sign in to comment.