postman-cli-completion 1.62.0 → 1.63.0
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.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.63.0)
|
|
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
|
|
@@ -179,7 +179,7 @@ _postman_collection() {
|
|
|
179
179
|
if [[ "$cur" == -* ]]; then
|
|
180
180
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
181
181
|
else
|
|
182
|
-
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get request list run" -- "$cur") )
|
|
182
|
+
COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get request folder list run" -- "$cur") )
|
|
183
183
|
fi
|
|
184
184
|
return 0
|
|
185
185
|
fi
|
|
@@ -190,6 +190,7 @@ _postman_collection() {
|
|
|
190
190
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
191
191
|
get) _postman_collection_get ;;
|
|
192
192
|
request) _postman_collection_request ;;
|
|
193
|
+
folder) _postman_collection_folder ;;
|
|
193
194
|
list) _postman_collection_list ;;
|
|
194
195
|
run) _postman_collection_run ;;
|
|
195
196
|
esac
|
|
@@ -298,6 +299,49 @@ _postman_collection_request_rm() {
|
|
|
298
299
|
esac
|
|
299
300
|
}
|
|
300
301
|
|
|
302
|
+
_postman_collection_folder() {
|
|
303
|
+
if [[ -z "$subcmd" ]]; then
|
|
304
|
+
if [[ "$cur" == -* ]]; then
|
|
305
|
+
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
306
|
+
else
|
|
307
|
+
COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
|
|
308
|
+
fi
|
|
309
|
+
return 0
|
|
310
|
+
fi
|
|
311
|
+
case "$subcmd" in
|
|
312
|
+
add) _postman_collection_folder_add ;;
|
|
313
|
+
update) _postman_collection_folder_update ;;
|
|
314
|
+
rm|remove) _postman_collection_folder_rm ;;
|
|
315
|
+
esac
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
_postman_collection_folder_add() {
|
|
319
|
+
if [[ "$cur" == -* ]]; then
|
|
320
|
+
COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
|
|
321
|
+
return 0
|
|
322
|
+
fi
|
|
323
|
+
case "$prev" in
|
|
324
|
+
esac
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
_postman_collection_folder_update() {
|
|
328
|
+
if [[ "$cur" == -* ]]; then
|
|
329
|
+
COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
|
|
330
|
+
return 0
|
|
331
|
+
fi
|
|
332
|
+
case "$prev" in
|
|
333
|
+
esac
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
_postman_collection_folder_rm() {
|
|
337
|
+
if [[ "$cur" == -* ]]; then
|
|
338
|
+
COMPREPLY=( $(compgen -W "--collection --folder -y --yes -w --workspace --json -h --help" -- "$cur") )
|
|
339
|
+
return 0
|
|
340
|
+
fi
|
|
341
|
+
case "$prev" in
|
|
342
|
+
esac
|
|
343
|
+
}
|
|
344
|
+
|
|
301
345
|
_postman_collection_list() {
|
|
302
346
|
if [[ "$cur" == -* ]]; then
|
|
303
347
|
COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.63.0)
|
|
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
|
|
@@ -76,7 +76,7 @@ complete -c postman -n '__fish_seen_subcommand_from init' -l json -d 'Emit machi
|
|
|
76
76
|
complete -c postman -n '__fish_seen_subcommand_from init' -l dry-run -d 'Report what would happen without writing anything'
|
|
77
77
|
complete -c postman -n '__fish_seen_subcommand_from init' -l no-fetch -d 'Use the skills bundled with this CLI instead of fetching the latest'
|
|
78
78
|
complete -c postman -n '__fish_seen_subcommand_from init' -l spec -d 'Which spec is authoritative, when more than one could be' -r
|
|
79
|
-
complete -c postman -n '__fish_seen_subcommand_from init' -l visibility -d 'Create and bind a workspace non-interactively (personal
|
|
79
|
+
complete -c postman -n '__fish_seen_subcommand_from init' -l visibility -d 'Create and bind a workspace non-interactively (personal, team)' -x
|
|
80
80
|
complete -c postman -n '__fish_seen_subcommand_from init' -l no-cloud -d 'Skip the workspace step entirely'
|
|
81
81
|
complete -c postman -n '__fish_seen_subcommand_from init' -l report-events -d 'Send init analytics to Postman (requires login)'
|
|
82
82
|
complete -c postman -n '__fish_seen_subcommand_from init' -s h -l help -d 'display help for command'
|
|
@@ -113,14 +113,15 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
|
|
|
113
113
|
complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -r -k -a '(__fish_complete_suffix .json)'
|
|
114
114
|
|
|
115
115
|
# ---------- collection ----------
|
|
116
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a new -d 'Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
|
|
117
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
|
|
118
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
|
|
119
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
120
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
|
|
121
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a request -d 'Add, update, or remove requests in a local v3 collection.'
|
|
122
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a
|
|
123
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a
|
|
116
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a new -d 'Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
|
|
117
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
|
|
118
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
|
|
119
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
120
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
|
|
121
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a request -d 'Add, update, or remove requests in a local v3 collection.'
|
|
122
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a folder -d 'Add, update, or remove folders in a local v3 collection.'
|
|
123
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
|
|
124
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
|
|
124
125
|
complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
125
126
|
# ---------- collection new ----------
|
|
126
127
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -s w -l workspace -d 'Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.' -x
|
|
@@ -183,6 +184,35 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
183
184
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -l type -d 'Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: "http")' -x
|
|
184
185
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -l json -d 'JSON output.'
|
|
185
186
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -s h -l help -d 'display help for command'
|
|
187
|
+
# ---------- collection folder ----------
|
|
188
|
+
complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a add -d 'Add an empty folder to a local v3 collection (set its details later with `update`).'
|
|
189
|
+
complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a update -d 'Update a folder in a v3 collection (only the fields you pass).'
|
|
190
|
+
complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a rm -d 'Remove a folder from a v3 collection (recursive: removes everything inside it).'
|
|
191
|
+
complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a remove -d 'Alias for rm'
|
|
192
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder' -s h -l help -d 'display help for command'
|
|
193
|
+
# ---------- collection folder add ----------
|
|
194
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l collection -d 'Target collection: name, directory, id, cloud id, or path. Required.' -x
|
|
195
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l folder -d 'Parent folder within the collection, e.g. "Users/Admin". Defaults to the root.' -x
|
|
196
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
|
|
197
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l json -d 'JSON output.'
|
|
198
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -s h -l help -d 'display help for command'
|
|
199
|
+
# ---------- collection folder update ----------
|
|
200
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l collection -d 'Target collection: name, directory, id, cloud id, or path (cloud: id only). Required.' -x
|
|
201
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l folder -d 'Parent folder to scope the selector, e.g. "Users" (local: name/path; cloud: id).' -x
|
|
202
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l name -d 'Rename the folder (moves its directory).' -x
|
|
203
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l description -d 'Folder description.' -x
|
|
204
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l auth -d 'Folder auth: none, inherit, bearer:TOKEN, basic:USER:PASS, apikey:KEY:VALUE[:header|query], oauth2:TOKEN.' -x
|
|
205
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l scripts -d 'Replace folder scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable. (default: [])' -x
|
|
206
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
|
|
207
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l json -d 'JSON output.'
|
|
208
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
|
209
|
+
# ---------- collection folder rm ----------
|
|
210
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l collection -d 'Target collection: name, directory, id, cloud id, or path (cloud: id only). Required.' -x
|
|
211
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l folder -d 'Parent folder to scope the selector, e.g. "Users" (local: name/path; cloud: id).' -x
|
|
212
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s y -l yes -d 'Skip the confirmation prompt (required when stdout is not a TTY).'
|
|
213
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
|
|
214
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l json -d 'JSON output.'
|
|
215
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s h -l help -d 'display help for command'
|
|
186
216
|
# ---------- collection list ----------
|
|
187
217
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s w -l workspace -d 'List a Postman cloud workspace\'s collections by id. Omit to list the local project\'s collections.' -x
|
|
188
218
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter collections by name.' -x
|
|
@@ -903,7 +933,7 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
|
|
|
903
933
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s x -l suppress-exit-code -d 'Always exit with code 0, even on failure'
|
|
904
934
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
|
|
905
935
|
# ---------- mock run ----------
|
|
906
|
-
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.
|
|
936
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.environment.yaml' -r
|
|
907
937
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s g -l globals -d 'Path to a file of global variables for the mock. Relative or absolute, e.g. ./globals.json' -r
|
|
908
938
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s p -l port -d 'Port to run on (e.g. 4010), or "auto" for a free one. Defaults to the mock\'s configured port.' -x
|
|
909
939
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key, used with a Postman cloud id (defaults to your `postman login` session)' -r
|
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.
|
|
3
|
+
# Zsh completion for Postman CLI (postman v1.63.0)
|
|
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
|
|
@@ -123,7 +123,7 @@ _postman_init() {
|
|
|
123
123
|
'--dry-run[Report what would happen without writing anything]' \
|
|
124
124
|
'--no-fetch[Use the skills bundled with this CLI instead of fetching the latest]' \
|
|
125
125
|
'--spec[Which spec is authoritative, when more than one could be]:path:_files -g "*.(yaml|yml|json)"' \
|
|
126
|
-
'--visibility[Create and bind a workspace non-interactively (personal
|
|
126
|
+
'--visibility[Create and bind a workspace non-interactively (personal, team)]:status' \
|
|
127
127
|
'--no-cloud[Skip the workspace step entirely]' \
|
|
128
128
|
'--report-events[Send init analytics to Postman (requires login)]' \
|
|
129
129
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -210,6 +210,7 @@ _postman_collection() {
|
|
|
210
210
|
ai-readiness) _postman_collection_ai_readiness ;;
|
|
211
211
|
get) _postman_collection_get ;;
|
|
212
212
|
request) _postman_collection_request ;;
|
|
213
|
+
folder) _postman_collection_folder ;;
|
|
213
214
|
list) _postman_collection_list ;;
|
|
214
215
|
run) _postman_collection_run ;;
|
|
215
216
|
esac
|
|
@@ -226,6 +227,7 @@ _postman_collection_commands() {
|
|
|
226
227
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
227
228
|
'get:Fetch a Postman collection in the V3 format and print it.'
|
|
228
229
|
'request:Add, update, or remove requests in a local v3 collection.'
|
|
230
|
+
'folder:Add, update, or remove folders in a local v3 collection.'
|
|
229
231
|
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
230
232
|
'run:Initiate a Postman collection run from a given ID or path.'
|
|
231
233
|
)
|
|
@@ -345,6 +347,70 @@ _postman_collection_request_rm() {
|
|
|
345
347
|
'*:request:'
|
|
346
348
|
}
|
|
347
349
|
|
|
350
|
+
_postman_collection_folder() {
|
|
351
|
+
local context state state_descr line
|
|
352
|
+
typeset -A opt_args
|
|
353
|
+
_arguments -C \
|
|
354
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
355
|
+
'1: :_postman_collection_folder_commands' \
|
|
356
|
+
'*::arg:->args'
|
|
357
|
+
case $state in
|
|
358
|
+
args)
|
|
359
|
+
case $words[1] in
|
|
360
|
+
add) _postman_collection_folder_add ;;
|
|
361
|
+
update) _postman_collection_folder_update ;;
|
|
362
|
+
rm|remove) _postman_collection_folder_rm ;;
|
|
363
|
+
esac
|
|
364
|
+
;;
|
|
365
|
+
esac
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
_postman_collection_folder_commands() {
|
|
369
|
+
local -a sub
|
|
370
|
+
sub=(
|
|
371
|
+
'add:Add an empty folder to a local v3 collection (set its details later with `update`).'
|
|
372
|
+
'update:Update a folder in a v3 collection (only the fields you pass).'
|
|
373
|
+
'rm:Remove a folder from a v3 collection (recursive\: removes everything inside it).'
|
|
374
|
+
'remove:Alias for rm'
|
|
375
|
+
)
|
|
376
|
+
_describe -t commands 'folder command' sub
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
_postman_collection_folder_add() {
|
|
380
|
+
_arguments \
|
|
381
|
+
'--collection[Target collection\: name, directory, id, cloud id, or path. Required.]:id|name' \
|
|
382
|
+
'--folder[Parent folder within the collection, e.g. "Users/Admin". Defaults to the root.]:id|name|path' \
|
|
383
|
+
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
384
|
+
'--json[JSON output.]' \
|
|
385
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
386
|
+
'*:folder-name:'
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
_postman_collection_folder_update() {
|
|
390
|
+
_arguments \
|
|
391
|
+
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
392
|
+
'--folder[Parent folder to scope the selector, e.g. "Users" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
393
|
+
'--name[Rename the folder (moves its directory).]:name' \
|
|
394
|
+
'--description[Folder description.]:text' \
|
|
395
|
+
'--auth[Folder auth\: none, inherit, bearer\:TOKEN, basic\:USER\:PASS, apikey\:KEY\:VALUE\[\:header|query\], oauth2\:TOKEN.]:spec' \
|
|
396
|
+
'--scripts[Replace folder scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable. (default\: \[\])]:event\:script' \
|
|
397
|
+
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
398
|
+
'--json[JSON output.]' \
|
|
399
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
400
|
+
'*:folder:'
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
_postman_collection_folder_rm() {
|
|
404
|
+
_arguments \
|
|
405
|
+
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
406
|
+
'--folder[Parent folder to scope the selector, e.g. "Users" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
407
|
+
'(-y --yes)'{-y,--yes}'[Skip the confirmation prompt (required when stdout is not a TTY).]' \
|
|
408
|
+
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
409
|
+
'--json[JSON output.]' \
|
|
410
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
411
|
+
'*:folder:'
|
|
412
|
+
}
|
|
413
|
+
|
|
348
414
|
_postman_collection_list() {
|
|
349
415
|
_arguments \
|
|
350
416
|
'(-w --workspace)'{-w,--workspace}'[List a Postman cloud workspace'\''s collections by id. Omit to list the local project'\''s collections.]:workspaceId' \
|
|
@@ -1717,7 +1783,7 @@ _postman_mock_generate() {
|
|
|
1717
1783
|
|
|
1718
1784
|
_postman_mock_run() {
|
|
1719
1785
|
_arguments \
|
|
1720
|
-
'(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.
|
|
1786
|
+
'(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.environment.yaml]:path:_files -g "*.json"' \
|
|
1721
1787
|
'(-g --globals)'{-g,--globals}'[Path to a file of global variables for the mock. Relative or absolute, e.g. ./globals.json]:path:_files -g "*.json"' \
|
|
1722
1788
|
'(-p --port)'{-p,--port}'[Port to run on (e.g. 4010), or "auto" for a free one. Defaults to the mock'\''s configured port.]:port' \
|
|
1723
1789
|
'--api-key[Postman API key, used with a Postman cloud id (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|