Skip to content

Commit

Permalink
bump version to v0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Oct 9, 2023
1 parent ab1ab67 commit aec1923
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
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.18.0"
version = "0.19.0"
authors = ["ducaale <[email protected]>"]
edition = "2021"
rust-version = "1.64.0"
Expand Down
2 changes: 1 addition & 1 deletion completions/_xh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _xh() {
colors\:"Apply syntax highlighting to output"
format\:"Pretty-print json and sort headers"
none\:"Disable both coloring and formatting"))' \
'--format-options=[Set output formatting options. The only currently implemented option is json.indent]:FORMAT_OPTIONS: ' \
'*--format-options=[Set output formatting options]:FORMAT_OPTIONS: ' \
'-s+[Output coloring style]:THEME:(auto solarized monokai fruity)' \
'--style=[Output coloring style]:THEME:(auto solarized monokai fruity)' \
'--response-charset=[Override the response encoding for terminal display purposes]:ENCODING: ' \
Expand Down
2 changes: 1 addition & 1 deletion completions/_xh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock {
'xh' {
[CompletionResult]::new('--raw', 'raw', [CompletionResultType]::ParameterName, 'Pass raw request data without extra processing')
[CompletionResult]::new('--pretty', 'pretty', [CompletionResultType]::ParameterName, 'Controls output processing')
[CompletionResult]::new('--format-options', 'format-options', [CompletionResultType]::ParameterName, 'Set output formatting options. The only currently implemented option is json.indent')
[CompletionResult]::new('--format-options', 'format-options', [CompletionResultType]::ParameterName, 'Set output formatting options')
[CompletionResult]::new('-s', 's', [CompletionResultType]::ParameterName, 'Output coloring style')
[CompletionResult]::new('--style', 'style', [CompletionResultType]::ParameterName, 'Output coloring style')
[CompletionResult]::new('--response-charset', 'response-charset', [CompletionResultType]::ParameterName, 'Override the response encoding for terminal display purposes')
Expand Down
2 changes: 1 addition & 1 deletion completions/xh.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 format-options -d 'Set output formatting options. The only currently implemented option is json.indent' -r
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 -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
Expand Down
11 changes: 7 additions & 4 deletions doc/xh.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH XH 1 2023-08-26 0.18.0 "User Commands"
.TH XH 1 2023-10-09 0.19.0 "User Commands"

.SH NAME
xh \- Friendly and fast tool for sending HTTP requests
Expand Down Expand Up @@ -117,11 +117,14 @@ Controls output processing. Possible values are:
Defaults to "format" if the NO_COLOR env is set and to "none" if stdout is not tty.
.TP 4
\fB\-\-format\-options\fR=\fIFORMAT_OPTIONS\fR
Set output formatting options. The only currently implemented option is json.indent.
Set output formatting options. Supported option are:

Different options need to be separated by a comma.
json.indent:<NUM>
json.format:<true|false>
headers.sort:<true|false>

Example: \-\-format\-options=json.indent:2.
Example: \-\-format\-options=json.indent:2,headers.sort:false
.
.TP 4
\fB\-s\fR, \fB\-\-style\fR=\fITHEME\fR
Output coloring style.
Expand Down

0 comments on commit aec1923

Please sign in to comment.