Update generated files.

This commit is contained in:
Jean-Christophe Amiel 2024-05-06 16:55:05 +02:00 committed by hurl-bot
parent b0da15a0ec
commit 651144541a
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
9 changed files with 21 additions and 20 deletions

View File

@ -97,7 +97,9 @@ class Option:
elif v == "false":
cli_only = False
else:
raise Exception(f"{name}: Expected true or false for cli attribute")
raise Exception(
f"{name}: Expected true or false for cli attribute"
)
elif key == "deprecated":
if v == "true":
deprecated = True

View File

@ -26,12 +26,12 @@ _hurl() {
'--continue-on-error[Continue executing requests even if an error occurs]' \
'(-b --cookie)'{-b,--cookie}'[Read cookies from FILE]: :_files' \
'(-c --cookie-jar)'{-c,--cookie-jar}'[Write cookies to FILE after running the session (only for one session)]: :_files' \
'--delay[Sets delay before each request.]: :' \
'--delay[Sets delay before each request]: :' \
'--error-format[Control the format of error messages]: :' \
'--fail-at-end[Fail at end]' \
'--file-root[Set root directory to import files \[default: input file directory\]]: :' \
'(-L --location)'{-L,--location}'[Follow redirects]' \
'--location-trusted[Follow redirects but allows sending the name + password to all hosts that the site may redirect to.]' \
'--location-trusted[Follow redirects but allows sending the name + password to all hosts that the site may redirect to]' \
'--from-entry[Execute Hurl file from ENTRY_NUMBER (starting at 1)]: :' \
'*--glob[Specify input files that match the given GLOB. Multiple glob flags may be used]: :' \
'(-0 --http1.0)'{-0,--http1.0}'[Tell Hurl to use HTTP version 1.0]' \
@ -65,7 +65,7 @@ _hurl() {
'*--resolve[Provide a custom address for a specific HOST and PORT pair]: :' \
'--retry[Maximum number of retries, 0 for no retries, -1 for unlimited retries]: :' \
'--retry-interval[Interval in milliseconds before a retry]: :' \
'--ssl-no-revoke[(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.]' \
'--ssl-no-revoke[(Windows) Tell Hurl to disable certificate revocation checks]' \
'--test[Activate test mode]' \
'--to-entry[Execute Hurl file to ENTRY_NUMBER (starting at 1)]: :' \
'--unix-socket[(HTTP) Connect through this Unix domain socket, instead of using the network]: :_files' \

View File

@ -31,12 +31,12 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
[CompletionResult]::new('--continue-on-error', 'continue-on-error', [CompletionResultType]::ParameterName, 'Continue executing requests even if an error occurs')
[CompletionResult]::new('--cookie', 'cookie', [CompletionResultType]::ParameterName, 'Read cookies from FILE')
[CompletionResult]::new('--cookie-jar', 'cookie-jar', [CompletionResultType]::ParameterName, 'Write cookies to FILE after running the session (only for one session)')
[CompletionResult]::new('--delay', 'delay', [CompletionResultType]::ParameterName, 'Sets delay before each request.')
[CompletionResult]::new('--delay', 'delay', [CompletionResultType]::ParameterName, 'Sets delay before each request')
[CompletionResult]::new('--error-format', 'error-format', [CompletionResultType]::ParameterName, 'Control the format of error messages')
[CompletionResult]::new('--fail-at-end', 'fail-at-end', [CompletionResultType]::ParameterName, 'Fail at end')
[CompletionResult]::new('--file-root', 'file-root', [CompletionResultType]::ParameterName, 'Set root directory to import files [default: input file directory]')
[CompletionResult]::new('--location', 'location', [CompletionResultType]::ParameterName, 'Follow redirects')
[CompletionResult]::new('--location-trusted', 'location-trusted', [CompletionResultType]::ParameterName, 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to.')
[CompletionResult]::new('--location-trusted', 'location-trusted', [CompletionResultType]::ParameterName, 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to')
[CompletionResult]::new('--from-entry', 'from-entry', [CompletionResultType]::ParameterName, 'Execute Hurl file from ENTRY_NUMBER (starting at 1)')
[CompletionResult]::new('--glob', 'glob', [CompletionResultType]::ParameterName, 'Specify input files that match the given GLOB. Multiple glob flags may be used')
[CompletionResult]::new('--http1.0', 'http1.0', [CompletionResultType]::ParameterName, 'Tell Hurl to use HTTP version 1.0')
@ -70,7 +70,7 @@ Register-ArgumentCompleter -Native -CommandName 'hurl' -ScriptBlock {
[CompletionResult]::new('--resolve', 'resolve', [CompletionResultType]::ParameterName, 'Provide a custom address for a specific HOST and PORT pair')
[CompletionResult]::new('--retry', 'retry', [CompletionResultType]::ParameterName, 'Maximum number of retries, 0 for no retries, -1 for unlimited retries')
[CompletionResult]::new('--retry-interval', 'retry-interval', [CompletionResultType]::ParameterName, 'Interval in milliseconds before a retry')
[CompletionResult]::new('--ssl-no-revoke', 'ssl-no-revoke', [CompletionResultType]::ParameterName, '(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.')
[CompletionResult]::new('--ssl-no-revoke', 'ssl-no-revoke', [CompletionResultType]::ParameterName, '(Windows) Tell Hurl to disable certificate revocation checks')
[CompletionResult]::new('--test', 'test', [CompletionResultType]::ParameterName, 'Activate test mode')
[CompletionResult]::new('--to-entry', 'to-entry', [CompletionResultType]::ParameterName, 'Execute Hurl file to ENTRY_NUMBER (starting at 1)')
[CompletionResult]::new('--unix-socket', 'unix-socket', [CompletionResultType]::ParameterName, '(HTTP) Connect through this Unix domain socket, instead of using the network')

View File

@ -9,12 +9,12 @@ complete -c hurl -l connect-to -d 'For a request to the given HOST1:PORT1 pair,
complete -c hurl -l continue-on-error -d 'Continue executing requests even if an error occurs'
complete -c hurl -l cookie -d 'Read cookies from FILE'
complete -c hurl -l cookie-jar -d 'Write cookies to FILE after running the session (only for one session)'
complete -c hurl -l delay -d 'Sets delay before each request.'
complete -c hurl -l delay -d 'Sets delay before each request'
complete -c hurl -l error-format -d 'Control the format of error messages'
complete -c hurl -l fail-at-end -d 'Fail at end'
complete -c hurl -l file-root -d 'Set root directory to import files [default: input file directory]'
complete -c hurl -l location -d 'Follow redirects'
complete -c hurl -l location-trusted -d 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to.'
complete -c hurl -l location-trusted -d 'Follow redirects but allows sending the name + password to all hosts that the site may redirect to'
complete -c hurl -l from-entry -d 'Execute Hurl file from ENTRY_NUMBER (starting at 1)'
complete -c hurl -l glob -d 'Specify input files that match the given GLOB. Multiple glob flags may be used'
complete -c hurl -l http1.0 -d 'Tell Hurl to use HTTP version 1.0'
@ -48,7 +48,7 @@ complete -c hurl -l report-tap -d 'Write a TAP report to FILE'
complete -c hurl -l resolve -d 'Provide a custom address for a specific HOST and PORT pair'
complete -c hurl -l retry -d 'Maximum number of retries, 0 for no retries, -1 for unlimited retries'
complete -c hurl -l retry-interval -d 'Interval in milliseconds before a retry'
complete -c hurl -l ssl-no-revoke -d '(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.'
complete -c hurl -l ssl-no-revoke -d '(Windows) Tell Hurl to disable certificate revocation checks'
complete -c hurl -l test -d 'Activate test mode'
complete -c hurl -l to-entry -d 'Execute Hurl file to ENTRY_NUMBER (starting at 1)'
complete -c hurl -l unix-socket -d '(HTTP) Connect through this Unix domain socket, instead of using the network'

View File

@ -3,6 +3,6 @@ long: delay
value: MILLISECONDS
value_default: 0
value_parser: clap::value_parser!(u64)
help: Sets delay before each request.
help: Sets delay before each request
---
Sets delay before each request.

View File

@ -1,6 +1,6 @@
name: follow_location_trusted
long: location-trusted
help: Follow redirects but allows sending the name + password to all hosts that the site may redirect to.
help: Follow redirects but allows sending the name + password to all hosts that the site may redirect to
---
Like [`-L, --location`](#location), but allows sending the name + password to all hosts that the site may redirect to.
This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).

View File

@ -1,6 +1,6 @@
name: ssl_no_revoke
long: ssl-no-revoke
help: (Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
help: (Windows) Tell Hurl to disable certificate revocation checks
cli_only: true
---
(Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.

View File

@ -29,7 +29,7 @@ Options:
-c, --cookie-jar <FILE>
Write cookies to FILE after running the session (only for one session)
--delay <MILLISECONDS>
Sets delay before each request. [default: 0]
Sets delay before each request [default: 0]
--error-format <FORMAT>
Control the format of error messages [default: short] [possible values: short, long]
--file-root <DIR>
@ -38,7 +38,7 @@ Options:
Follow redirects
--location-trusted
Follow redirects but allows sending the name + password to all hosts that the site may
redirect to.
redirect to
--from-entry <ENTRY_NUMBER>
Execute Hurl file from ENTRY_NUMBER (starting at 1)
--glob <GLOB>
@ -108,8 +108,7 @@ Options:
--retry-interval <MILLISECONDS>
Interval in milliseconds before a retry [default: 1000]
--ssl-no-revoke
(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens
the SSL security, and by using this flag you ask for exactly that.
(Windows) Tell Hurl to disable certificate revocation checks
--test
Activate test mode
--to-entry <ENTRY_NUMBER>

View File

@ -124,7 +124,7 @@ pub fn delay() -> clap::Arg {
.value_name("MILLISECONDS")
.default_value("0")
.value_parser(clap::value_parser!(u64))
.help("Sets delay before each request.")
.help("Sets delay before each request")
.num_args(1)
}
@ -165,7 +165,7 @@ pub fn follow_location() -> clap::Arg {
pub fn follow_location_trusted() -> clap::Arg {
clap::Arg::new("follow_location_trusted")
.long("location-trusted")
.help("Follow redirects but allows sending the name + password to all hosts that the site may redirect to.")
.help("Follow redirects but allows sending the name + password to all hosts that the site may redirect to")
.action(clap::ArgAction::SetTrue)
}
@ -452,7 +452,7 @@ pub fn retry_interval() -> clap::Arg {
pub fn ssl_no_revoke() -> clap::Arg {
clap::Arg::new("ssl_no_revoke")
.long("ssl-no-revoke")
.help("(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.")
.help("(Windows) Tell Hurl to disable certificate revocation checks")
.action(clap::ArgAction::SetTrue)
}