postman-cli-completion 1.46.0 → 1.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.46.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.46.1)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -22,7 +22,7 @@ _postman() {
|
|
|
22
22
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
23
23
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
24
24
|
|
|
25
|
-
local top_commands="login logout collection api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
|
|
25
|
+
local top_commands="login logout collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -49,6 +49,8 @@ _postman() {
|
|
|
49
49
|
login) _postman_login ;;
|
|
50
50
|
logout) _postman_logout ;;
|
|
51
51
|
collection) _postman_collection ;;
|
|
52
|
+
environment) _postman_environment ;;
|
|
53
|
+
globals) _postman_globals ;;
|
|
52
54
|
api) _postman_api ;;
|
|
53
55
|
runner) _postman_runner ;;
|
|
54
56
|
spec) _postman_spec ;;
|
|
@@ -206,6 +208,54 @@ _postman_collection_run() {
|
|
|
206
208
|
_postman_filematch '!*.@(json)' "$cur"
|
|
207
209
|
}
|
|
208
210
|
|
|
211
|
+
_postman_environment() {
|
|
212
|
+
if [[ -z "$subcmd" ]]; then
|
|
213
|
+
if [[ "$cur" == -* ]]; then
|
|
214
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
215
|
+
else
|
|
216
|
+
COMPREPLY=( $(compgen -W "lint" -- "$cur") )
|
|
217
|
+
fi
|
|
218
|
+
return 0
|
|
219
|
+
fi
|
|
220
|
+
case "$subcmd" in
|
|
221
|
+
lint) _postman_environment_lint ;;
|
|
222
|
+
esac
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
_postman_environment_lint() {
|
|
226
|
+
if [[ "$cur" == -* ]]; then
|
|
227
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
228
|
+
return 0
|
|
229
|
+
fi
|
|
230
|
+
case "$prev" in
|
|
231
|
+
esac
|
|
232
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
_postman_globals() {
|
|
236
|
+
if [[ -z "$subcmd" ]]; then
|
|
237
|
+
if [[ "$cur" == -* ]]; then
|
|
238
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
239
|
+
else
|
|
240
|
+
COMPREPLY=( $(compgen -W "lint" -- "$cur") )
|
|
241
|
+
fi
|
|
242
|
+
return 0
|
|
243
|
+
fi
|
|
244
|
+
case "$subcmd" in
|
|
245
|
+
lint) _postman_globals_lint ;;
|
|
246
|
+
esac
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
_postman_globals_lint() {
|
|
250
|
+
if [[ "$cur" == -* ]]; then
|
|
251
|
+
COMPREPLY=( $(compgen -W "-f --fail-severity -o --output -h --help" -- "$cur") )
|
|
252
|
+
return 0
|
|
253
|
+
fi
|
|
254
|
+
case "$prev" in
|
|
255
|
+
esac
|
|
256
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
257
|
+
}
|
|
258
|
+
|
|
209
259
|
_postman_api() {
|
|
210
260
|
if [[ -z "$subcmd" ]]; then
|
|
211
261
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.46.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.46.1)
|
|
2
2
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
3
3
|
# Source: spec/commands.json
|
|
4
4
|
# https://github.com/yokawasa/postman-cli-completion
|
|
5
5
|
|
|
6
6
|
function __postman_no_subcommand
|
|
7
|
-
not __fish_seen_subcommand_from login logout collection api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
|
|
7
|
+
not __fish_seen_subcommand_from login logout collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
function __postman_using_subcommand
|
|
@@ -24,6 +24,8 @@ complete -c postman -n __postman_no_subcommand -s h -l help -d 'display help for
|
|
|
24
24
|
complete -c postman -n __postman_no_subcommand -a login -d 'Authenticate with Postman to access your resources.'
|
|
25
25
|
complete -c postman -n __postman_no_subcommand -a logout -d 'Delete the stored Postman API key.'
|
|
26
26
|
complete -c postman -n __postman_no_subcommand -a collection -d 'Run and test your Postman collections directly from the command line.'
|
|
27
|
+
complete -c postman -n __postman_no_subcommand -a environment -d 'Work with local Postman environments from the command line.'
|
|
28
|
+
complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local Postman globals from the command line.'
|
|
27
29
|
complete -c postman -n __postman_no_subcommand -a api -d 'Publish and test your APIs directly from the command line'
|
|
28
30
|
complete -c postman -n __postman_no_subcommand -a runner -d 'Run runners on your own environments for monitoring your APIs'
|
|
29
31
|
complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate Specifications from the command line'
|
|
@@ -129,6 +131,24 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
129
131
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-html-omitAllHeadersAndBody -d 'Remove all request/response headers and bodies from the report.'
|
|
130
132
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
131
133
|
|
|
134
|
+
# ---------- environment ----------
|
|
135
|
+
complete -c postman -n '__postman_using_subcommand environment lint' -a lint -d 'Run linting on a local Postman environment at the given file or directory path.'
|
|
136
|
+
complete -c postman -n '__fish_seen_subcommand_from environment' -s h -l help -d 'display help for command'
|
|
137
|
+
# ---------- environment lint ----------
|
|
138
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Exit with failure if diagnostics at this level or above are present. [choices: "error", "warning"] (default: "error")' -x
|
|
139
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, json, or csv. (default: "cli")' -x
|
|
140
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
|
|
141
|
+
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
142
|
+
|
|
143
|
+
# ---------- globals ----------
|
|
144
|
+
complete -c postman -n '__postman_using_subcommand globals lint' -a lint -d 'Run linting on a local Postman globals file at the given file or directory path.'
|
|
145
|
+
complete -c postman -n '__fish_seen_subcommand_from globals' -s h -l help -d 'display help for command'
|
|
146
|
+
# ---------- globals lint ----------
|
|
147
|
+
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Exit with failure if diagnostics at this level or above are present. [choices: "error", "warning"] (default: "error")' -x
|
|
148
|
+
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, json, or csv. (default: "cli")' -x
|
|
149
|
+
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
|
|
150
|
+
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
151
|
+
|
|
132
152
|
# ---------- api ----------
|
|
133
153
|
complete -c postman -n '__postman_using_subcommand api lint publish' -a lint -d 'Run linting on the schema of the given API ID or local file in the given path. If [api] is not provided we will run the linting on the schema present in the .postman config file'
|
|
134
154
|
complete -c postman -n '__postman_using_subcommand api lint publish' -a publish -d 'Publish a version of an API for the given apiId. All entities added to the API will be published by default. User can choose which entities to publish by using additional options.'
|
|
@@ -367,7 +387,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk' -s h -l help -d 'displa
|
|
|
367
387
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from init' -s y -l yes -d 'Skip prompts and overwrite existing sdk config'
|
|
368
388
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from init' -s h -l help -d 'display help for command'
|
|
369
389
|
# ---------- sdk generate ----------
|
|
370
|
-
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s l -l language -d 'Target language(s) for SDK generation. Specify one or more languages. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"]' -x
|
|
390
|
+
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s l -l language -d 'Target language(s) for SDK generation. Specify one or more languages. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"]' -x
|
|
371
391
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l all -d 'Generate SDKs for all supported languages'
|
|
372
392
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s o -l output-dir -d 'Directory where the generated SDK will be saved (default: "./sdks")' -x
|
|
373
393
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l name -d 'Name for the generated SDK package' -x
|
|
@@ -383,7 +403,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
|
|
|
383
403
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -l no-emit -d 'Skip downloading and saving SDK artifacts to disk. Useful in CI when the build only needs to trigger server-side pull requests.'
|
|
384
404
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
|
|
385
405
|
# ---------- sdk track ----------
|
|
386
|
-
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s l -l language -d 'Language(s) to track. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"]' -x
|
|
406
|
+
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s l -l language -d 'Language(s) to track. [choices: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"]' -x
|
|
387
407
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s o -l output-dir -d 'Base directory containing generated SDKs (default: "./sdks")' -x
|
|
388
408
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from track' -s h -l help -d 'display help for command'
|
|
389
409
|
# ---------- sdk list ----------
|
|
@@ -399,7 +419,7 @@ complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcomm
|
|
|
399
419
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from fetch' -l log-level -d 'Set build log detail level. "warn" (default) shows errors/warnings inline and collapses info notes; "info" expands all log entries (default: "warn")' -x
|
|
400
420
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from fetch' -s h -l help -d 'display help for command'
|
|
401
421
|
# ---------- sdk connect ----------
|
|
402
|
-
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s l -l language -d 'SDK language (required) [choices: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust]' -x
|
|
422
|
+
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s l -l language -d 'SDK language (required) [choices: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust, swift]' -x
|
|
403
423
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -s r -l repo -d 'GitHub repository in <owner>/<name> form (alternative to --repo-owner + --repo-name)' -x
|
|
404
424
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -l repo-owner -d 'GitHub repository owner (user or org)' -x
|
|
405
425
|
complete -c postman -n '__fish_seen_subcommand_from sdk; and __fish_seen_subcommand_from connect' -l repo-name -d 'GitHub repository name' -x
|
package/completions/zsh/_postman
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#compdef postman
|
|
2
2
|
compdef _postman postman
|
|
3
|
-
# Zsh completion for Postman CLI (postman v1.46.
|
|
3
|
+
# Zsh completion for Postman CLI (postman v1.46.1)
|
|
4
4
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
5
5
|
# Source: spec/commands.json
|
|
6
6
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -23,6 +23,8 @@ _postman() {
|
|
|
23
23
|
login) _postman_login ;;
|
|
24
24
|
logout) _postman_logout ;;
|
|
25
25
|
collection) _postman_collection ;;
|
|
26
|
+
environment) _postman_environment ;;
|
|
27
|
+
globals) _postman_globals ;;
|
|
26
28
|
api) _postman_api ;;
|
|
27
29
|
runner) _postman_runner ;;
|
|
28
30
|
spec) _postman_spec ;;
|
|
@@ -50,6 +52,8 @@ _postman_commands() {
|
|
|
50
52
|
'login:Authenticate with Postman to access your resources.'
|
|
51
53
|
'logout:Delete the stored Postman API key.'
|
|
52
54
|
'collection:Run and test your Postman collections directly from the command line.'
|
|
55
|
+
'environment:Work with local Postman environments from the command line.'
|
|
56
|
+
'globals:Work with local Postman globals from the command line.'
|
|
53
57
|
'api:Publish and test your APIs directly from the command line'
|
|
54
58
|
'runner:Run runners on your own environments for monitoring your APIs'
|
|
55
59
|
'spec:Lint and validate Specifications from the command line'
|
|
@@ -197,6 +201,70 @@ _postman_collection_run() {
|
|
|
197
201
|
'*:collectionId/Path:_files -g "*.json"'
|
|
198
202
|
}
|
|
199
203
|
|
|
204
|
+
_postman_environment() {
|
|
205
|
+
local context state state_descr line
|
|
206
|
+
typeset -A opt_args
|
|
207
|
+
_arguments -C \
|
|
208
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
209
|
+
'1: :_postman_environment_commands' \
|
|
210
|
+
'*::arg:->args'
|
|
211
|
+
case $state in
|
|
212
|
+
args)
|
|
213
|
+
case $words[1] in
|
|
214
|
+
lint) _postman_environment_lint ;;
|
|
215
|
+
esac
|
|
216
|
+
;;
|
|
217
|
+
esac
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
_postman_environment_commands() {
|
|
221
|
+
local -a sub
|
|
222
|
+
sub=(
|
|
223
|
+
'lint:Run linting on a local Postman environment at the given file or directory path.'
|
|
224
|
+
)
|
|
225
|
+
_describe -t commands 'environment command' sub
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
_postman_environment_lint() {
|
|
229
|
+
_arguments \
|
|
230
|
+
'(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
|
|
231
|
+
'(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, json, or csv. (default\: "cli")]:value' \
|
|
232
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
233
|
+
'*:path:_files -g "*.json"'
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
_postman_globals() {
|
|
237
|
+
local context state state_descr line
|
|
238
|
+
typeset -A opt_args
|
|
239
|
+
_arguments -C \
|
|
240
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
241
|
+
'1: :_postman_globals_commands' \
|
|
242
|
+
'*::arg:->args'
|
|
243
|
+
case $state in
|
|
244
|
+
args)
|
|
245
|
+
case $words[1] in
|
|
246
|
+
lint) _postman_globals_lint ;;
|
|
247
|
+
esac
|
|
248
|
+
;;
|
|
249
|
+
esac
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
_postman_globals_commands() {
|
|
253
|
+
local -a sub
|
|
254
|
+
sub=(
|
|
255
|
+
'lint:Run linting on a local Postman globals file at the given file or directory path.'
|
|
256
|
+
)
|
|
257
|
+
_describe -t commands 'globals command' sub
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
_postman_globals_lint() {
|
|
261
|
+
_arguments \
|
|
262
|
+
'(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
|
|
263
|
+
'(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, json, or csv. (default\: "cli")]:value' \
|
|
264
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
265
|
+
'*:path:_files -g "*.json"'
|
|
266
|
+
}
|
|
267
|
+
|
|
200
268
|
_postman_api() {
|
|
201
269
|
local context state state_descr line
|
|
202
270
|
typeset -A opt_args
|
|
@@ -678,7 +746,7 @@ _postman_sdk_init() {
|
|
|
678
746
|
|
|
679
747
|
_postman_sdk_generate() {
|
|
680
748
|
_arguments \
|
|
681
|
-
'(-l --language)'{-l,--language}'[Target language(s) for SDK generation. Specify one or more languages. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"\]]:languages...' \
|
|
749
|
+
'(-l --language)'{-l,--language}'[Target language(s) for SDK generation. Specify one or more languages. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"\]]:languages...' \
|
|
682
750
|
'--all[Generate SDKs for all supported languages]' \
|
|
683
751
|
'(-o --output-dir)'{-o,--output-dir}'[Directory where the generated SDK will be saved (default\: "./sdks")]:path:_files -/' \
|
|
684
752
|
'--name[Name for the generated SDK package]:name' \
|
|
@@ -698,7 +766,7 @@ _postman_sdk_generate() {
|
|
|
698
766
|
|
|
699
767
|
_postman_sdk_track() {
|
|
700
768
|
_arguments \
|
|
701
|
-
'(-l --language)'{-l,--language}'[Language(s) to track. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust"\]]:languages...' \
|
|
769
|
+
'(-l --language)'{-l,--language}'[Language(s) to track. \[choices\: "typescript", "python", "java", "go", "csharp", "php", "ruby", "cli", "kotlin", "rust", "swift"\]]:languages...' \
|
|
702
770
|
'(-o --output-dir)'{-o,--output-dir}'[Base directory containing generated SDKs (default\: "./sdks")]:path:_files -/' \
|
|
703
771
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
704
772
|
}
|
|
@@ -725,7 +793,7 @@ _postman_sdk_fetch() {
|
|
|
725
793
|
|
|
726
794
|
_postman_sdk_connect() {
|
|
727
795
|
_arguments \
|
|
728
|
-
'(-l --language)'{-l,--language}'[SDK language (required) \[choices\: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust\]]:language' \
|
|
796
|
+
'(-l --language)'{-l,--language}'[SDK language (required) \[choices\: typescript, python, java, go, csharp, php, ruby, cli, kotlin, rust, swift\]]:language' \
|
|
729
797
|
'(-r --repo)'{-r,--repo}'[GitHub repository in <owner>/<name> form (alternative to --repo-owner + --repo-name)]:owner/name' \
|
|
730
798
|
'--repo-owner[GitHub repository owner (user or org)]:owner' \
|
|
731
799
|
'--repo-name[GitHub repository name]:name' \
|