Add Test integ for hurlfmt help

This commit is contained in:
Fabrice Reix 2024-01-18 14:43:50 +01:00
parent bbc8f0f4d5
commit 83fc9d2f0d
No known key found for this signature in database
GPG Key ID: BF5213154B2E7155
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Format Hurl files
Usage: hurlfmt [OPTIONS] [FILES]...
Arguments:
[FILES]... Sets the input file to use
Options:
--check Run in 'check' mode
--color Colorize Output
--format <FORMAT> Specify output format: hurl, json or html (DEPRECATED) [default: hurl]
--in-place Modify file in place
--in <FORMAT> Specify input format: hurl or curl [default: hurl]
--no-color Do not colorize output
-o, --output <FILE> Write to FILE instead of stdout
--out <FORMAT> Specify output format: hurl, json or html [default: hurl]
--standalone Standalone HTML
-h, --help Print help
-V, --version Print version

View File

@ -0,0 +1,3 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl --help

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -Eeuo pipefail
# In CI, --help is wrapped on a 120 columns wide terminal.
hurlfmt --help