From c5aa950685f350909855a6a4bfe560a9a61dd1bd Mon Sep 17 00:00:00 2001 From: Fabrice Reix Date: Wed, 28 Aug 2024 13:37:33 +0200 Subject: [PATCH] Fix powershell completion --- .github/workflows/check.yml | 2 +- completions/_hurlfmt | 2 +- completions/_hurlfmt.ps1 | 2 +- completions/hurlfmt.fish | 2 +- docs/manual/hurl.1 | 2 +- docs/manual/hurlfmt.1 | 4 ++-- docs/manual/hurlfmt.md | 2 +- docs/spec/options/hurlfmt/check.option | 4 ++-- integration/hurlfmt/tests_ok/help.out.pattern | 2 +- packages/hurlfmt/src/cli/options/commands.rs | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7531d2188d6..34e578a052d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -104,4 +104,4 @@ jobs: if: always() run: | sudo apt-get install -y zsh fish powershell - bin/check/completion.sh \ No newline at end of file + bin/check/completion.sh diff --git a/completions/_hurlfmt b/completions/_hurlfmt index 82be744cb9a..257a785e080 100644 --- a/completions/_hurlfmt +++ b/completions/_hurlfmt @@ -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]' \ diff --git a/completions/_hurlfmt.ps1 b/completions/_hurlfmt.ps1 index 3317b15786f..382417ac4f5 100644 --- a/completions/_hurlfmt.ps1 +++ b/completions/_hurlfmt.ps1 @@ -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') diff --git a/completions/hurlfmt.fish b/completions/hurlfmt.fish index f27562e0690..9c5e6d03d1b 100644 --- a/completions/hurlfmt.fish +++ b/completions/hurlfmt.fish @@ -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' diff --git a/docs/manual/hurl.1 b/docs/manual/hurl.1 index 42ad473d0fd..75f4784364b 100644 --- a/docs/manual/hurl.1 +++ b/docs/manual/hurl.1 @@ -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. diff --git a/docs/manual/hurlfmt.1 b/docs/manual/hurlfmt.1 index 4568b27700a..725b4409981 100644 --- a/docs/manual/hurlfmt.1 +++ b/docs/manual/hurlfmt.1 @@ -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 @@ -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. diff --git a/docs/manual/hurlfmt.md b/docs/manual/hurlfmt.md index 1aa286b7bc8..9755b0d9f4b 100644 --- a/docs/manual/hurlfmt.md +++ b/docs/manual/hurlfmt.md @@ -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). diff --git a/docs/spec/options/hurlfmt/check.option b/docs/spec/options/hurlfmt/check.option index 9481a060a52..8693252dfc2 100644 --- a/docs/spec/options/hurlfmt/check.option +++ b/docs/spec/options/hurlfmt/check.option @@ -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). diff --git a/integration/hurlfmt/tests_ok/help.out.pattern b/integration/hurlfmt/tests_ok/help.out.pattern index 41948983cd1..2e6801c193a 100644 --- a/integration/hurlfmt/tests_ok/help.out.pattern +++ b/integration/hurlfmt/tests_ok/help.out.pattern @@ -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 Specify input format: hurl or curl [default: hurl] diff --git a/packages/hurlfmt/src/cli/options/commands.rs b/packages/hurlfmt/src/cli/options/commands.rs index 4aaca07d604..f99d5200d38 100644 --- a/packages/hurlfmt/src/cli/options/commands.rs +++ b/packages/hurlfmt/src/cli/options/commands.rs @@ -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)