Skip to content

Commit 21e998e

Browse files
committed
bump version to v0.24.0
1 parent a3d0cfd commit 21e998e

File tree

9 files changed

+48
-23
lines changed

9 files changed

+48
-23
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## [0.24.0] - 2025-02-18
22
### Features
33
- Add `--generate` option to generate the man page and shell completions at runtime,
44
see #393 (@fgimian)

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "xh"
3-
version = "0.23.1"
3+
version = "0.24.0"
44
authors = ["ducaale <[email protected]>"]
55
edition = "2021"
66
rust-version = "1.74.0"

Diff for: completions/_xh

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ none\:"Disable both coloring and formatting"))' \
6969
'*--quiet[Do not print to stdout or stderr]' \
7070
'-S[Always stream the response body]' \
7171
'--stream[Always stream the response body]' \
72-
'*-x[Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate]' \
73-
'*--compress[Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate]' \
72+
'*-x[Content compressed (encoded) with Deflate algorithm]' \
73+
'*--compress[Content compressed (encoded) with Deflate algorithm]' \
7474
'-d[Download the body to a file instead of printing it]' \
7575
'--download[Download the body to a file instead of printing it]' \
7676
'-c[Resume an interrupted download. Requires --download and --output]' \

Diff for: completions/_xh.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock {
7272
[CompletionResult]::new('--quiet', '--quiet', [CompletionResultType]::ParameterName, 'Do not print to stdout or stderr')
7373
[CompletionResult]::new('-S', '-S ', [CompletionResultType]::ParameterName, 'Always stream the response body')
7474
[CompletionResult]::new('--stream', '--stream', [CompletionResultType]::ParameterName, 'Always stream the response body')
75-
[CompletionResult]::new('-x', '-x', [CompletionResultType]::ParameterName, 'Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate')
76-
[CompletionResult]::new('--compress', '--compress', [CompletionResultType]::ParameterName, 'Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate')
75+
[CompletionResult]::new('-x', '-x', [CompletionResultType]::ParameterName, 'Content compressed (encoded) with Deflate algorithm')
76+
[CompletionResult]::new('--compress', '--compress', [CompletionResultType]::ParameterName, 'Content compressed (encoded) with Deflate algorithm')
7777
[CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'Download the body to a file instead of printing it')
7878
[CompletionResult]::new('--download', '--download', [CompletionResultType]::ParameterName, 'Download the body to a file instead of printing it')
7979
[CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Resume an interrupted download. Requires --download and --output')

Diff for: completions/xh.elv

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ set edit:completion:arg-completer[xh] = {|@words|
6969
cand --quiet 'Do not print to stdout or stderr'
7070
cand -S 'Always stream the response body'
7171
cand --stream 'Always stream the response body'
72-
cand -x 'Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate'
73-
cand --compress 'Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate'
72+
cand -x 'Content compressed (encoded) with Deflate algorithm'
73+
cand --compress 'Content compressed (encoded) with Deflate algorithm'
7474
cand -d 'Download the body to a file instead of printing it'
7575
cand --download 'Download the body to a file instead of printing it'
7676
cand -c 'Resume an interrupted download. Requires --download and --output'

Diff for: completions/xh.fish

+28-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
complete -c xh -l raw -d 'Pass raw request data without extra processing' -r
2-
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "{all\t'(default) Enable both coloring and formatting',colors\t'Apply syntax highlighting to output',format\t'Pretty-print json and sort headers',none\t'Disable both coloring and formatting'}"
2+
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "all\t'(default) Enable both coloring and formatting'
3+
colors\t'Apply syntax highlighting to output'
4+
format\t'Pretty-print json and sort headers'
5+
none\t'Disable both coloring and formatting'"
36
complete -c xh -l format-options -d 'Set output formatting options' -r
4-
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "{auto\t'',solarized\t'',monokai\t'',fruity\t''}"
7+
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "auto\t''
8+
solarized\t''
9+
monokai\t''
10+
fruity\t''"
511
complete -c xh -l response-charset -d 'Override the response encoding for terminal display purposes' -r
612
complete -c xh -l response-mime -d 'Override the response mime type for coloring and formatting for the terminal' -r
713
complete -c xh -s p -l print -d 'String specifying what the output should contain' -r
814
complete -c xh -s P -l history-print -d 'The same as --print but applies only to intermediary requests/responses' -r
915
complete -c xh -s o -l output -d 'Save output to FILE instead of stdout' -r -F
1016
complete -c xh -l session -d 'Create, or reuse and update a session' -r
1117
complete -c xh -l session-read-only -d 'Create or read a session without updating it form the request/response exchange' -r
12-
complete -c xh -s A -l auth-type -d 'Specify the auth mechanism' -r -f -a "{basic\t'',bearer\t'',digest\t''}"
18+
complete -c xh -s A -l auth-type -d 'Specify the auth mechanism' -r -f -a "basic\t''
19+
bearer\t''
20+
digest\t''"
1321
complete -c xh -s a -l auth -d 'Authenticate as USER with PASS (-A basic|digest) or with TOKEN (-A bearer)' -r
1422
complete -c xh -l bearer -d 'Authenticate with a bearer token' -r
1523
complete -c xh -l max-redirects -d 'Number of redirects to follow. Only respected if --follow is used' -r
@@ -18,12 +26,25 @@ complete -c xh -l proxy -d 'Use a proxy for a protocol. For example: --proxy htt
1826
complete -c xh -l verify -d 'If "no", skip SSL verification. If a file path, use it as a CA bundle' -r
1927
complete -c xh -l cert -d 'Use a client side certificate for SSL' -r -F
2028
complete -c xh -l cert-key -d 'A private key file to use with --cert' -r -F
21-
complete -c xh -l ssl -d 'Force a particular TLS version' -r -f -a "{auto\t'',tls1\t'',tls1.1\t'',tls1.2\t'',tls1.3\t''}"
29+
complete -c xh -l ssl -d 'Force a particular TLS version' -r -f -a "auto\t''
30+
tls1\t''
31+
tls1.1\t''
32+
tls1.2\t''
33+
tls1.3\t''"
2234
complete -c xh -l default-scheme -d 'The default scheme to use if not specified in the URL' -r
23-
complete -c xh -l http-version -d 'HTTP version to use' -r -f -a "{1.0\t'',1.1\t'',2\t'',2-prior-knowledge\t''}"
35+
complete -c xh -l http-version -d 'HTTP version to use' -r -f -a "1.0\t''
36+
1.1\t''
37+
2\t''
38+
2-prior-knowledge\t''"
2439
complete -c xh -l resolve -d 'Override DNS resolution for specific domain to a custom IP' -r
2540
complete -c xh -l interface -d 'Bind to a network interface or local IP address' -r
26-
complete -c xh -l generate -d 'Generate shell completions or man pages' -r -f -a "{complete-bash\t'',complete-elvish\t'',complete-fish\t'',complete-nushell\t'',complete-powershell\t'',complete-zsh\t'',man\t''}"
41+
complete -c xh -l generate -d 'Generate shell completions or man pages' -r -f -a "complete-bash\t''
42+
complete-elvish\t''
43+
complete-fish\t''
44+
complete-nushell\t''
45+
complete-powershell\t''
46+
complete-zsh\t''
47+
man\t''"
2748
complete -c xh -s j -l json -d '(default) Serialize data items from the command line as a JSON object'
2849
complete -c xh -s f -l form -d 'Serialize data items from the command line as form fields'
2950
complete -c xh -l multipart -d 'Like --form, but force a multipart/form-data request even without files'
@@ -35,7 +56,7 @@ complete -c xh -l debug -d 'Print full error stack traces and debug log messages
3556
complete -c xh -l all -d 'Show any intermediary requests/responses while following redirects with --follow'
3657
complete -c xh -s q -l quiet -d 'Do not print to stdout or stderr'
3758
complete -c xh -s S -l stream -d 'Always stream the response body'
38-
complete -c xh -s x -l compress -d 'Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate'
59+
complete -c xh -s x -l compress -d 'Content compressed (encoded) with Deflate algorithm'
3960
complete -c xh -s d -l download -d 'Download the body to a file instead of printing it'
4061
complete -c xh -s c -l continue -d 'Resume an interrupted download. Requires --download and --output'
4162
complete -c xh -l ignore-netrc -d 'Do not use credentials from .netrc'

Diff for: completions/xh.nu

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module completions {
4545
--history-print(-P): string # The same as --print but applies only to intermediary requests/responses
4646
--quiet(-q) # Do not print to stdout or stderr
4747
--stream(-S) # Always stream the response body
48-
--compress(-x) # Content compressed (encoded) with Deflate algorithm. The Content-Encoding header is set to deflate
49-
--output(-o): string # Save output to FILE instead of stdout
48+
--compress(-x) # Content compressed (encoded) with Deflate algorithm
49+
--output(-o): path # Save output to FILE instead of stdout
5050
--download(-d) # Download the body to a file instead of printing it
5151
--continue(-c) # Resume an interrupted download. Requires --download and --output
5252
--session: string # Create, or reuse and update a session
@@ -62,8 +62,8 @@ module completions {
6262
--timeout: string # Connection timeout of the request
6363
--proxy: string # Use a proxy for a protocol. For example: --proxy https:http://proxy.host:8080
6464
--verify: string # If "no", skip SSL verification. If a file path, use it as a CA bundle
65-
--cert: string # Use a client side certificate for SSL
66-
--cert-key: string # A private key file to use with --cert
65+
--cert: path # Use a client side certificate for SSL
66+
--cert-key: path # A private key file to use with --cert
6767
--ssl: string@"nu-complete xh ssl" # Force a particular TLS version
6868
--native-tls # Use the system TLS library instead of rustls (if enabled at compile time)
6969
--default-scheme: string # The default scheme to use if not specified in the URL

Diff for: doc/xh.1

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH XH 1 2025-02-04 0.23.1 "User Commands"
1+
.TH XH 1 2025-02-18 0.24.0 "User Commands"
22

33
.SH NAME
44
xh \- Friendly and fast tool for sending HTTP requests
@@ -189,9 +189,13 @@ Using quiet twice i.e. \-qq will suppress warnings as well.
189189
Always stream the response body.
190190
.TP 4
191191
\fB\-x\fR, \fB\-\-compress\fR
192-
Content compressed (encoded) with Deflate algorithm. The Content\-Encoding header is set to deflate.
192+
Content compressed (encoded) with Deflate algorithm.
193193

194-
Compression is skipped if it appears that compression ratio is negative. Compression can be forced by repeating this option. Note: Compression cannot be forced if the Content\-Encoding request header is present.
194+
The Content\-Encoding header is set to deflate.
195+
196+
Compression is skipped if it appears that compression ratio is negative. Compression can be forced by repeating this option.
197+
198+
Note: Compression cannot be used if the Content\-Encoding request header is present.
195199
.TP 4
196200
\fB\-o\fR, \fB\-\-output\fR=\fIFILE\fR
197201
Save output to FILE instead of stdout.

0 commit comments

Comments
 (0)