Skip to content

Commit

Permalink
Fix powershell completion
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricereix authored and hurl-bot committed Aug 28, 2024
1 parent 7467f08 commit c5aa950
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ jobs:
if: always()
run: |
sudo apt-get install -y zsh fish powershell
bin/check/completion.sh
bin/check/completion.sh
2 changes: 1 addition & 1 deletion completions/_hurlfmt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _hurlfmt() {

local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'--check[Run in 'check' mode]' \
'--check[Run in check mode]' \
'--color[Colorize Output]' \
'--format[Specify output format: hurl, json or html]: :' \
'--in-place[Modify files in place]' \
Expand Down
2 changes: 1 addition & 1 deletion completions/_hurlfmt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Register-ArgumentCompleter -Native -CommandName 'hurlfmt' -ScriptBlock {

$completions = @(switch ($command) {
'hurlfmt'
{[CompletionResult]::new('--check', 'check', [CompletionResultType]::ParameterName, 'Run in 'check' mode')
{[CompletionResult]::new('--check', 'check', [CompletionResultType]::ParameterName, 'Run in check mode')
[CompletionResult]::new('--color', 'color', [CompletionResultType]::ParameterName, 'Colorize Output')
[CompletionResult]::new('--format', 'format', [CompletionResultType]::ParameterName, 'Specify output format: hurl, json or html')
[CompletionResult]::new('--in-place', 'in-place', [CompletionResultType]::ParameterName, 'Modify files in place')
Expand Down
2 changes: 1 addition & 1 deletion completions/hurlfmt.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
complete -c hurlfmt -l check -d 'Run in 'check' mode'
complete -c hurlfmt -l check -d 'Run in check mode'
complete -c hurlfmt -l color -d 'Colorize Output'
complete -c hurlfmt -l format -d 'Specify output format: hurl, json or html'
complete -c hurlfmt -l in-place -d 'Modify files in place'
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/hurl.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hurl 1 "27 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "28 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME

hurl - run and test HTTP requests.
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/hurlfmt.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH hurl 1 "27 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "28 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME

hurlfmt - format Hurl files
Expand Down Expand Up @@ -60,7 +60,7 @@ hurlfmt can also be used to convert a curl command-line to Hurl

.IP "--check "

Run in 'check' mode. Exits with 0 if input is formatted correctly, 1 otherwise.
Run in check mode. Exits with 0 if input is formatted correctly, 1 otherwise.

This can not be used with \fI--output\fP.

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/hurlfmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Fruit: Raspberry

### --check {#check}

Run in 'check' mode. Exits with 0 if input is formatted correctly, 1 otherwise.
Run in check mode. Exits with 0 if input is formatted correctly, 1 otherwise.

This can not be used with [--output](#output).

Expand Down
4 changes: 2 additions & 2 deletions docs/spec/options/hurlfmt/check.option
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: check
long: check
help: Run in 'check' mode
help: Run in check mode
conflict: format output
---
Run in 'check' mode. Exits with 0 if input is formatted correctly, 1 otherwise.
Run in check mode. Exits with 0 if input is formatted correctly, 1 otherwise.

This can not be used with [--output](#output).

Expand Down
2 changes: 1 addition & 1 deletion integration/hurlfmt/tests_ok/help.out.pattern
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Arguments:
[FILES]... Set the input file to use

Options:
--check Run in 'check' mode
--check Run in check mode
--color Colorize Output
--in-place Modify files in place
--in <FORMAT> Specify input format: hurl or curl [default: hurl]
Expand Down
2 changes: 1 addition & 1 deletion packages/hurlfmt/src/cli/options/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn input_files() -> clap::Arg {
pub fn check() -> clap::Arg {
clap::Arg::new("check")
.long("check")
.help("Run in 'check' mode")
.help("Run in check mode")
.conflicts_with("format")
.conflicts_with("output")
.action(clap::ArgAction::SetTrue)
Expand Down

0 comments on commit c5aa950

Please sign in to comment.