Skip to content

Commit

Permalink
bump version to 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Jul 26, 2021
1 parent 87de7df commit d188374
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 20 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.11.0] - 2021-07-26
### Features
- Support `REQUESTS_CA_BUNDLE` & `CURL_CA_BUNDLE` env variables, see #146 (@ducaale)
- Enable color and wrapping for _--help_, see #151 (@QuarticCat)
Expand Down
4 changes: 3 additions & 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.10.0"
version = "0.11.0"
authors = ["ducaale <sharaf.13@hotmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions completions/_xh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ _xh() {
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'--pretty=[Controls output processing]: :(all colors format none)' \
'-s+[Output coloring style]: :(auto solarized)' \
'--style=[Output coloring style]: :(auto solarized)' \
'-s+[Output coloring style]: :(auto solarized monokai)' \
'--style=[Output coloring style]: :(auto solarized monokai)' \
'-p+[String specifying what the output should contain]' \
'--print=[String specifying what the output should contain]' \
'-o+[Save output to FILE instead of stdout]' \
Expand Down Expand Up @@ -56,7 +56,7 @@ _xh() {
'--continue[Resume an interrupted download. Requires --download and --output]' \
'--ignore-netrc[Do not use credentials from .netrc]' \
'--offline[Construct HTTP requests without sending them anywhere]' \
'--check-status[Exit with an error status code if the server replies with an error]' \
'--check-status[(default) Exit with an error status code if the server replies with an error]' \
'-F[Do follow redirects]' \
'--follow[Do follow redirects]' \
'--https[Make HTTPS requests if not specified in the URL]' \
Expand Down
2 changes: 1 addition & 1 deletion completions/_xh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Register-ArgumentCompleter -Native -CommandName 'xh' -ScriptBlock {
[CompletionResult]::new('--continue', 'continue', [CompletionResultType]::ParameterName, 'Resume an interrupted download. Requires --download and --output')
[CompletionResult]::new('--ignore-netrc', 'ignore-netrc', [CompletionResultType]::ParameterName, 'Do not use credentials from .netrc')
[CompletionResult]::new('--offline', 'offline', [CompletionResultType]::ParameterName, 'Construct HTTP requests without sending them anywhere')
[CompletionResult]::new('--check-status', 'check-status', [CompletionResultType]::ParameterName, 'Exit with an error status code if the server replies with an error')
[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('--https', 'https', [CompletionResultType]::ParameterName, 'Make HTTPS requests if not specified in the URL')
Expand Down
4 changes: 2 additions & 2 deletions completions/xh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ _xh() {
return 0
;;
--style)
COMPREPLY=($(compgen -W "auto solarized" -- "${cur}"))
COMPREPLY=($(compgen -W "auto solarized monokai" -- "${cur}"))
return 0
;;
-s)
COMPREPLY=($(compgen -W "auto solarized" -- "${cur}"))
COMPREPLY=($(compgen -W "auto solarized monokai" -- "${cur}"))
return 0
;;
--print)
Expand Down
4 changes: 2 additions & 2 deletions completions/xh.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
complete -c xh -l pretty -d 'Controls output processing' -r -f -a "all colors format none"
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "auto solarized"
complete -c xh -s s -l style -d 'Output coloring style' -r -f -a "auto solarized monokai"
complete -c xh -s p -l print -d 'String specifying what the output should contain'
complete -c xh -s o -l output -d 'Save output to FILE instead of stdout'
complete -c xh -s A -l auth-type -d 'Specify the auth mechanism' -r -f -a "basic bearer"
Expand All @@ -24,7 +24,7 @@ complete -c xh -s d -l download -d 'Download the body to a file instead of print
complete -c xh -s c -l continue -d 'Resume an interrupted download. Requires --download and --output'
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 'Exit with an error status code if the server replies with an error'
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 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'
Expand Down
19 changes: 10 additions & 9 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" "May 2021" "xh 0.10.0" "User Commands"
.TH XH "1" "July 2021" "xh 0.11.0" "User Commands"
.SH NAME
xh \- Friendly and fast tool for sending HTTP requests
.SH SYNOPSIS
Expand Down Expand Up @@ -49,6 +49,10 @@ Optional key-value pairs to be included in the request.
\fBheader;\fR to add a header with an empty value
.IP
A backslash can be used to escape special characters (e.g. weird\\:key=value).
.IP
File uploads can take ';type=' and ';filename=' parameters to set the mimetype and filename, respectively. For example:
.IP
key@filename;type=text/html;filename=document.html
.SS "Flags"
.HP
\fB\-j\fR, \fB\-\-json\fR
Expand Down Expand Up @@ -101,10 +105,9 @@ Construct HTTP requests without sending them anywhere
.HP
\fB\-\-check\-status\fR
.IP
Exit with an error status code if the server replies with an error.
(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
Expand Down Expand Up @@ -144,7 +147,7 @@ Controls output processing [possible values: all, colors, format, none]
.HP
\fB\-s\fR, \fB\-\-style\fR <THEME>
.IP
Output coloring style [possible values: auto, solarized]
Output coloring style [possible values: auto, solarized, monokai]
.HP
\fB\-p\fR, \fB\-\-print\fR <FORMAT>
.IP
Expand Down Expand Up @@ -184,13 +187,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 <VERIFY>
.IP
Expand Down

0 comments on commit d188374

Please sign in to comment.