postman-cli-completion 1.44.0 → 1.45.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.
- package/completions/bash/postman.bash +84 -25
- package/completions/fish/postman.fish +63 -34
- package/completions/zsh/_postman +72 -36
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
1
|
+
# Bash completion for Postman CLI (postman v1.45.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
|
|
@@ -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 performance flows fl request sdk mock application app simulate context search webhook dataset"
|
|
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"
|
|
26
26
|
local global_flags="-v --version --silent --color -h --help -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -53,7 +53,7 @@ _postman() {
|
|
|
53
53
|
runner) _postman_runner ;;
|
|
54
54
|
spec) _postman_spec ;;
|
|
55
55
|
monitor) _postman_monitor ;;
|
|
56
|
-
workspace) _postman_workspace ;;
|
|
56
|
+
workspace|ws) _postman_workspace ;;
|
|
57
57
|
performance) _postman_performance ;;
|
|
58
58
|
flows|fl) _postman_flows ;;
|
|
59
59
|
request) _postman_request ;;
|
|
@@ -332,16 +332,26 @@ _postman_workspace() {
|
|
|
332
332
|
if [[ "$cur" == -* ]]; then
|
|
333
333
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
334
334
|
else
|
|
335
|
-
COMPREPLY=( $(compgen -W "prepare push" -- "$cur") )
|
|
335
|
+
COMPREPLY=( $(compgen -W "list prepare push" -- "$cur") )
|
|
336
336
|
fi
|
|
337
337
|
return 0
|
|
338
338
|
fi
|
|
339
339
|
case "$subcmd" in
|
|
340
|
+
list) _postman_workspace_list ;;
|
|
340
341
|
prepare) _postman_workspace_prepare ;;
|
|
341
342
|
push) _postman_workspace_push ;;
|
|
342
343
|
esac
|
|
343
344
|
}
|
|
344
345
|
|
|
346
|
+
_postman_workspace_list() {
|
|
347
|
+
if [[ "$cur" == -* ]]; then
|
|
348
|
+
COMPREPLY=( $(compgen -W "-f --filter -t --type --verbose --debug --json -h --help" -- "$cur") )
|
|
349
|
+
return 0
|
|
350
|
+
fi
|
|
351
|
+
case "$prev" in
|
|
352
|
+
esac
|
|
353
|
+
}
|
|
354
|
+
|
|
345
355
|
_postman_workspace_prepare() {
|
|
346
356
|
if [[ "$cur" == -* ]]; then
|
|
347
357
|
COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
|
|
@@ -1146,46 +1156,64 @@ _postman_dataset() {
|
|
|
1146
1156
|
|
|
1147
1157
|
_postman_dataset_list() {
|
|
1148
1158
|
if [[ "$cur" == -* ]]; then
|
|
1149
|
-
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
1159
|
+
COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
|
|
1150
1160
|
return 0
|
|
1151
1161
|
fi
|
|
1162
|
+
case "$prev" in
|
|
1163
|
+
--api-key)
|
|
1164
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1165
|
+
return 0 ;;
|
|
1166
|
+
esac
|
|
1152
1167
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1153
1168
|
}
|
|
1154
1169
|
|
|
1155
1170
|
_postman_dataset_get() {
|
|
1156
1171
|
if [[ "$cur" == -* ]]; then
|
|
1157
|
-
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
1172
|
+
COMPREPLY=( $(compgen -W "--api-key --no-populate --json -h --help" -- "$cur") )
|
|
1158
1173
|
return 0
|
|
1159
1174
|
fi
|
|
1160
|
-
|
|
1175
|
+
case "$prev" in
|
|
1176
|
+
--api-key)
|
|
1177
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1178
|
+
return 0 ;;
|
|
1179
|
+
esac
|
|
1161
1180
|
}
|
|
1162
1181
|
|
|
1163
1182
|
_postman_dataset_query() {
|
|
1164
1183
|
if [[ "$cur" == -* ]]; then
|
|
1165
|
-
COMPREPLY=( $(compgen -W "-q --query -p --param --json -h --help" -- "$cur") )
|
|
1184
|
+
COMPREPLY=( $(compgen -W "-q --query -p --param --api-key --json -h --help" -- "$cur") )
|
|
1166
1185
|
return 0
|
|
1167
1186
|
fi
|
|
1168
1187
|
case "$prev" in
|
|
1188
|
+
--api-key)
|
|
1189
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1190
|
+
return 0 ;;
|
|
1169
1191
|
esac
|
|
1170
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1171
1192
|
}
|
|
1172
1193
|
|
|
1173
1194
|
_postman_dataset_create() {
|
|
1174
1195
|
if [[ "$cur" == -* ]]; then
|
|
1175
|
-
COMPREPLY=( $(compgen -W "-n --name -d --description --id --force -h --help" -- "$cur") )
|
|
1196
|
+
COMPREPLY=( $(compgen -W "-n --name -d --description --dataset-id --force -w --workspace --api-key -h --help" -- "$cur") )
|
|
1176
1197
|
return 0
|
|
1177
1198
|
fi
|
|
1178
1199
|
case "$prev" in
|
|
1200
|
+
--api-key)
|
|
1201
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1202
|
+
return 0 ;;
|
|
1179
1203
|
esac
|
|
1180
1204
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1181
1205
|
}
|
|
1182
1206
|
|
|
1183
1207
|
_postman_dataset_delete() {
|
|
1184
1208
|
if [[ "$cur" == -* ]]; then
|
|
1185
|
-
COMPREPLY=( $(compgen -W "-y --yes --keep-resources -h --help" -- "$cur") )
|
|
1209
|
+
COMPREPLY=( $(compgen -W "-y --yes --keep-resources --api-key -h --help" -- "$cur") )
|
|
1186
1210
|
return 0
|
|
1187
1211
|
fi
|
|
1188
|
-
|
|
1212
|
+
case "$prev" in
|
|
1213
|
+
--api-key)
|
|
1214
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1215
|
+
return 0 ;;
|
|
1216
|
+
esac
|
|
1189
1217
|
}
|
|
1190
1218
|
|
|
1191
1219
|
_postman_dataset_source() {
|
|
@@ -1207,41 +1235,55 @@ _postman_dataset_source() {
|
|
|
1207
1235
|
|
|
1208
1236
|
_postman_dataset_source_list() {
|
|
1209
1237
|
if [[ "$cur" == -* ]]; then
|
|
1210
|
-
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
1238
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
|
|
1211
1239
|
return 0
|
|
1212
1240
|
fi
|
|
1213
|
-
|
|
1241
|
+
case "$prev" in
|
|
1242
|
+
--api-key)
|
|
1243
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1244
|
+
return 0 ;;
|
|
1245
|
+
esac
|
|
1214
1246
|
}
|
|
1215
1247
|
|
|
1216
1248
|
_postman_dataset_source_add() {
|
|
1217
1249
|
if [[ "$cur" == -* ]]; then
|
|
1218
|
-
COMPREPLY=( $(compgen -W "-n --name --id --format --type --file --ref-only --force --url --host --port --user --password --database --table --slug -h --help" -- "$cur") )
|
|
1250
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --url --host --port --user --password --database --table --slug --api-key -h --help" -- "$cur") )
|
|
1219
1251
|
return 0
|
|
1220
1252
|
fi
|
|
1221
1253
|
case "$prev" in
|
|
1222
1254
|
--file)
|
|
1223
1255
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1224
1256
|
return 0 ;;
|
|
1257
|
+
--api-key)
|
|
1258
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1259
|
+
return 0 ;;
|
|
1225
1260
|
esac
|
|
1226
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1227
1261
|
}
|
|
1228
1262
|
|
|
1229
1263
|
_postman_dataset_source_remove() {
|
|
1230
1264
|
if [[ "$cur" == -* ]]; then
|
|
1231
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1265
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
|
|
1232
1266
|
return 0
|
|
1233
1267
|
fi
|
|
1268
|
+
case "$prev" in
|
|
1269
|
+
--api-key)
|
|
1270
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1271
|
+
return 0 ;;
|
|
1272
|
+
esac
|
|
1234
1273
|
}
|
|
1235
1274
|
|
|
1236
1275
|
_postman_dataset_source_update() {
|
|
1237
1276
|
if [[ "$cur" == -* ]]; then
|
|
1238
|
-
COMPREPLY=( $(compgen -W "-n --name --format --file --ref-only --force --url --host --port --user --password --database --table --slug -h --help" -- "$cur") )
|
|
1277
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --url --host --port --user --password --database --table --slug --api-key -h --help" -- "$cur") )
|
|
1239
1278
|
return 0
|
|
1240
1279
|
fi
|
|
1241
1280
|
case "$prev" in
|
|
1242
1281
|
--file)
|
|
1243
1282
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1244
1283
|
return 0 ;;
|
|
1284
|
+
--api-key)
|
|
1285
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1286
|
+
return 0 ;;
|
|
1245
1287
|
esac
|
|
1246
1288
|
}
|
|
1247
1289
|
|
|
@@ -1265,44 +1307,61 @@ _postman_dataset_view() {
|
|
|
1265
1307
|
|
|
1266
1308
|
_postman_dataset_view_list() {
|
|
1267
1309
|
if [[ "$cur" == -* ]]; then
|
|
1268
|
-
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
1310
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
|
|
1269
1311
|
return 0
|
|
1270
1312
|
fi
|
|
1271
|
-
|
|
1313
|
+
case "$prev" in
|
|
1314
|
+
--api-key)
|
|
1315
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1316
|
+
return 0 ;;
|
|
1317
|
+
esac
|
|
1272
1318
|
}
|
|
1273
1319
|
|
|
1274
1320
|
_postman_dataset_view_run() {
|
|
1275
1321
|
if [[ "$cur" == -* ]]; then
|
|
1276
|
-
COMPREPLY=( $(compgen -W "-p --param --json -h --help" -- "$cur") )
|
|
1322
|
+
COMPREPLY=( $(compgen -W "-d --dataset -p --param --api-key --json -h --help" -- "$cur") )
|
|
1277
1323
|
return 0
|
|
1278
1324
|
fi
|
|
1279
1325
|
case "$prev" in
|
|
1326
|
+
--api-key)
|
|
1327
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1328
|
+
return 0 ;;
|
|
1280
1329
|
esac
|
|
1281
1330
|
}
|
|
1282
1331
|
|
|
1283
1332
|
_postman_dataset_view_create() {
|
|
1284
1333
|
if [[ "$cur" == -* ]]; then
|
|
1285
|
-
COMPREPLY=( $(compgen -W "-n --name -q --query --id -h --help" -- "$cur") )
|
|
1334
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --view-id --api-key -h --help" -- "$cur") )
|
|
1286
1335
|
return 0
|
|
1287
1336
|
fi
|
|
1288
1337
|
case "$prev" in
|
|
1338
|
+
--api-key)
|
|
1339
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1340
|
+
return 0 ;;
|
|
1289
1341
|
esac
|
|
1290
|
-
_postman_filematch '!*.@(json)' "$cur"
|
|
1291
1342
|
}
|
|
1292
1343
|
|
|
1293
1344
|
_postman_dataset_view_delete() {
|
|
1294
1345
|
if [[ "$cur" == -* ]]; then
|
|
1295
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1346
|
+
COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
|
|
1296
1347
|
return 0
|
|
1297
1348
|
fi
|
|
1349
|
+
case "$prev" in
|
|
1350
|
+
--api-key)
|
|
1351
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1352
|
+
return 0 ;;
|
|
1353
|
+
esac
|
|
1298
1354
|
}
|
|
1299
1355
|
|
|
1300
1356
|
_postman_dataset_view_update() {
|
|
1301
1357
|
if [[ "$cur" == -* ]]; then
|
|
1302
|
-
COMPREPLY=( $(compgen -W "-n --name -q --query -h --help" -- "$cur") )
|
|
1358
|
+
COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --api-key -h --help" -- "$cur") )
|
|
1303
1359
|
return 0
|
|
1304
1360
|
fi
|
|
1305
1361
|
case "$prev" in
|
|
1362
|
+
--api-key)
|
|
1363
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1364
|
+
return 0 ;;
|
|
1306
1365
|
esac
|
|
1307
1366
|
}
|
|
1308
1367
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.45.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
|
|
5
5
|
|
|
6
6
|
function __postman_no_subcommand
|
|
7
|
-
not __fish_seen_subcommand_from login logout collection api runner spec monitor workspace performance flows fl request sdk mock application app simulate context search webhook dataset
|
|
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
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
function __postman_using_subcommand
|
|
@@ -29,6 +29,7 @@ complete -c postman -n __postman_no_subcommand -a runner -d 'Run runners on your
|
|
|
29
29
|
complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate Specifications from the command line'
|
|
30
30
|
complete -c postman -n __postman_no_subcommand -a monitor -d 'Invoke a monitor run and display results'
|
|
31
31
|
complete -c postman -n __postman_no_subcommand -a workspace -d 'Manage workspace resources.'
|
|
32
|
+
complete -c postman -n __postman_no_subcommand -a ws -d 'Alias for workspace'
|
|
32
33
|
complete -c postman -n __postman_no_subcommand -a performance -d 'Manage performance tests on your collections.'
|
|
33
34
|
complete -c postman -n __postman_no_subcommand -a flows -d 'Manage and interact with flows.'
|
|
34
35
|
complete -c postman -n __postman_no_subcommand -a fl -d 'Alias for flows'
|
|
@@ -82,9 +83,9 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
82
83
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-json-structure -d '[Optional] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.'
|
|
83
84
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s n -l iteration-count -d 'Define the number of iterations to run' -x
|
|
84
85
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s d -l iteration-data -d 'Specify a data file to use for iterations (either JSON or CSV)' -r
|
|
85
|
-
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Path to a .dataset.yaml whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
|
|
86
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
|
|
86
87
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-view -d '[BETA] Name or id of the view to execute (within --iteration-data-dataset). The view\'s result set drives one iteration per row.' -x
|
|
87
|
-
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. (default: [])' -r
|
|
88
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default: [])' -r
|
|
88
89
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s i -d 'Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default: [])' -x
|
|
89
90
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l global-var -d 'Allows the specification of global variables via the command line, in a key=value format' -x
|
|
90
91
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l env-var -d 'Allows the specification of environment variables via the command line, in a key=value format (default: [])' -x
|
|
@@ -186,9 +187,17 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
|
|
|
186
187
|
complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
187
188
|
|
|
188
189
|
# ---------- workspace ----------
|
|
189
|
-
complete -c postman -n '__postman_using_subcommand workspace prepare push' -a
|
|
190
|
-
complete -c postman -n '__postman_using_subcommand workspace prepare push' -a
|
|
190
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a list -d 'List all available Postman Workspaces'
|
|
191
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
192
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a push -d 'Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
|
|
191
193
|
complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
|
|
194
|
+
# ---------- workspace list ----------
|
|
195
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter workspaces by name.' -x
|
|
196
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s t -l type -d 'Filter workspaces by visibility type: team, public, private, personal.' -x
|
|
197
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l verbose -d 'Verbose output'
|
|
198
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l debug -d 'Debug output'
|
|
199
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l json -d 'JSON output'
|
|
200
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
192
201
|
# ---------- workspace prepare ----------
|
|
193
202
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -l verbose -d 'Show detailed logging'
|
|
194
203
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -s h -l help -d 'display help for command'
|
|
@@ -344,7 +353,7 @@ complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-in -
|
|
|
344
353
|
|
|
345
354
|
# ---------- sdk ----------
|
|
346
355
|
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a init -d 'Create or update .postman/config.json with an SDK configuration stub.'
|
|
347
|
-
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a generate -d 'Generate a new SDK from a Postman collection or specification.'
|
|
356
|
+
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a generate -d 'Generate a new SDK from a Postman collection or specification (OpenAPI or AsyncAPI).'
|
|
348
357
|
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a build -d 'Alias for generate'
|
|
349
358
|
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a track -d 'Enable change tracking for a generated SDK. Adds file hashes to .manifest.json so that the next `sdk generate` can detect your edits and preserve them via 3-way merge.'
|
|
350
359
|
complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a list -d 'List SDK builds for a collection, extensible collection, or specification.'
|
|
@@ -602,71 +611,82 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
|
|
|
602
611
|
complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s h -l help -d 'display help for command'
|
|
603
612
|
|
|
604
613
|
# ---------- dataset ----------
|
|
605
|
-
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a list -d '[BETA] List dataset YAMLs under
|
|
606
|
-
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a get -d '[BETA] Print a dataset\'s metadata and structure summary.'
|
|
607
|
-
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a query -d '[BETA] Run an ad-hoc SQL query against a dataset.'
|
|
608
|
-
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a create -d '[BETA] Scaffold a new
|
|
609
|
-
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a delete -d '[BETA] Permanently remove a dataset
|
|
614
|
+
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a list -d '[BETA] List local dataset YAMLs under a path, or (no path) a workspace\'s cloud datasets.'
|
|
615
|
+
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a get -d '[BETA] Print a dataset\'s metadata and structure summary (local YAML path or cloud id).'
|
|
616
|
+
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a query -d '[BETA] Run an ad-hoc SQL query against a dataset (local YAML path or cloud id).'
|
|
617
|
+
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a create -d '[BETA] Scaffold a new .dataset.yaml at <path>, or (no path, with -w) create a cloud dataset.'
|
|
618
|
+
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a delete -d '[BETA] Permanently remove a dataset: a local .dataset.yaml (+ .resources/) or a cloud dataset id.'
|
|
610
619
|
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a source -d '[BETA] Inspect and manage a dataset\'s datasources.'
|
|
611
620
|
complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a view -d '[BETA] Inspect and manage saved views on a dataset.'
|
|
612
621
|
complete -c postman -n '__fish_seen_subcommand_from dataset' -s h -l help -d 'display help for command'
|
|
613
622
|
# ---------- dataset list ----------
|
|
623
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Postman workspace ID (cloud list)' -x
|
|
624
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
614
625
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -l json -d 'Output as JSON instead of a table'
|
|
615
626
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
616
627
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
617
628
|
# ---------- dataset get ----------
|
|
618
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l
|
|
629
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
630
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip fetching datasources/views for a cloud dataset'
|
|
631
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l json -d 'Output the full dataset as JSON'
|
|
619
632
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
620
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
|
|
621
633
|
# ---------- dataset query ----------
|
|
622
634
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s q -l query -d 'SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")' -x
|
|
623
635
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s p -l param -d 'Positional parameter values for $1, $2, ... bindings; repeatable' -x
|
|
636
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
624
637
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l json -d 'Output rows as JSON instead of a table'
|
|
625
638
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s h -l help -d 'display help for command'
|
|
626
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -r -k -a '(__fish_complete_suffix .json)'
|
|
627
639
|
# ---------- dataset create ----------
|
|
628
640
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s n -l name -d 'Human-readable name for the dataset' -x
|
|
629
641
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s d -l description -d 'Optional description' -x
|
|
630
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l id -d 'Override the generated dataset id (defaults to a random v4 UUID)' -x
|
|
642
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l dataset-id -d 'Override the generated dataset id (local only; defaults to a random v4 UUID)' -x
|
|
631
643
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l force -d 'Overwrite an existing file at <path>'
|
|
644
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s w -l workspace -d 'Postman workspace ID (create a cloud dataset)' -x
|
|
645
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
632
646
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
633
647
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -r -k -a '(__fish_complete_suffix .json)'
|
|
634
648
|
# ---------- dataset delete ----------
|
|
635
649
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip the confirmation prompt'
|
|
636
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l keep-resources -d 'Delete only the YAML file; leave the .resources/ directory intact'
|
|
650
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l keep-resources -d 'Delete only the YAML file; leave the .resources/ directory intact (local only)'
|
|
651
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
637
652
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
638
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -r -k -a '(__fish_complete_suffix .json)'
|
|
639
653
|
# ---------- dataset source ----------
|
|
640
|
-
complete -c postman -n '__postman_using_subcommand source list add remove update' -a list -d '[BETA] List the datasources defined on a dataset.'
|
|
654
|
+
complete -c postman -n '__postman_using_subcommand source list add remove update' -a list -d '[BETA] List the datasources defined on a dataset (local YAML path or cloud id).'
|
|
641
655
|
complete -c postman -n '__postman_using_subcommand source list add remove update' -a add -d '[BETA] Add a datasource to a dataset.'
|
|
642
|
-
complete -c postman -n '__postman_using_subcommand source list add remove update' -a remove -d '[BETA] Remove a datasource from a dataset.'
|
|
656
|
+
complete -c postman -n '__postman_using_subcommand source list add remove update' -a remove -d '[BETA] Remove a datasource from a dataset (local YAML path or cloud id).'
|
|
643
657
|
complete -c postman -n '__postman_using_subcommand source list add remove update' -a update -d '[BETA] Update fields on an existing datasource. Only the flags you provide are changed.'
|
|
644
658
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source' -s h -l help -d 'display help for command'
|
|
645
659
|
# ---------- dataset source list ----------
|
|
660
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -s d -l dataset -d 'Dataset whose sources to list — a local .dataset.yaml path or a cloud dataset id' -x
|
|
661
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
646
662
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -l json -d 'Output sources as JSON instead of a table'
|
|
647
663
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
648
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
649
664
|
# ---------- dataset source add ----------
|
|
665
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s d -l dataset -d 'Dataset to add the source to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
650
666
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s n -l name -d 'Logical name for the source (becomes the SQL table name)' -x
|
|
651
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l id -d 'Override the generated source id' -x
|
|
667
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l source-id -d 'Override the generated source id' -x
|
|
652
668
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l format -d 'Override the inferred format' -x
|
|
653
669
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l type -d 'Source kind; inferred from --file/--url when omitted' -x
|
|
654
670
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON file (absolute or cwd-relative)' -r
|
|
655
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir'
|
|
656
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination'
|
|
671
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir (local dataset)'
|
|
672
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination (local dataset)'
|
|
673
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l upload -d 'Cloud dataset only: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem csv/json source read by the local engine.'
|
|
657
674
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l url -d 'HTTP(S) URL to a remote CSV/JSON file' -x
|
|
658
675
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l host -d 'DB host (mysql/postgresql)' -x
|
|
659
676
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l port -d 'DB port' -x
|
|
660
677
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l user -d 'DB user (warning: stored as plaintext in the YAML).' -x
|
|
661
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l password -d 'DB password
|
|
678
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l password -d 'DB password. WARNING: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.' -x
|
|
662
679
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l database -d 'DB database name' -x
|
|
663
680
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l table -d 'DB table name (optional)' -x
|
|
664
681
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l slug -d 'Optional slug for the source' -x
|
|
682
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
665
683
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s h -l help -d 'display help for command'
|
|
666
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -r -k -a '(__fish_complete_suffix .json)'
|
|
667
684
|
# ---------- dataset source remove ----------
|
|
685
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -s d -l dataset -d 'Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
686
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
668
687
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -s h -l help -d 'display help for command'
|
|
669
688
|
# ---------- dataset source update ----------
|
|
689
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s d -l dataset -d 'Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
670
690
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s n -l name -d 'Rename the source' -x
|
|
671
691
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l format -d 'Change the format' -x
|
|
672
692
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l file -d 'Replace the source\'s file (local-filesystem only)' -r
|
|
@@ -676,35 +696,44 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
|
|
|
676
696
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l host -d 'Update DB host (mysql/postgresql)' -x
|
|
677
697
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l port -d 'Update DB port' -x
|
|
678
698
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l user -d 'Update DB user (warning: stored as plaintext in the YAML).' -x
|
|
679
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l password -d 'Update DB password
|
|
699
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l password -d 'Update DB password. WARNING: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.' -x
|
|
680
700
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l database -d 'Update DB database name' -x
|
|
681
701
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l table -d 'Update DB table name' -x
|
|
682
702
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l slug -d 'Update slug' -x
|
|
703
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
683
704
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
|
684
705
|
# ---------- dataset view ----------
|
|
685
|
-
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a list -d '[BETA] List the saved views defined on a dataset.'
|
|
706
|
+
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a list -d '[BETA] List the saved views defined on a dataset (local YAML path or cloud id).'
|
|
686
707
|
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a run -d '[BETA] Execute a saved view against a dataset and print the rows.'
|
|
687
|
-
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a create -d '[BETA] Add a saved view to a dataset.'
|
|
688
|
-
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a delete -d '[BETA] Remove a saved view from a dataset.'
|
|
689
|
-
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a update -d '[BETA] Update name and/or query on an existing view.'
|
|
708
|
+
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a create -d '[BETA] Add a saved view to a dataset (local YAML path or cloud id).'
|
|
709
|
+
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a delete -d '[BETA] Remove a saved view from a dataset (local YAML path or cloud id).'
|
|
710
|
+
complete -c postman -n '__postman_using_subcommand view list run create delete update' -a update -d '[BETA] Update name and/or query on an existing view (local YAML path or cloud id).'
|
|
690
711
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view' -s h -l help -d 'display help for command'
|
|
691
712
|
# ---------- dataset view list ----------
|
|
713
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -s d -l dataset -d 'Dataset whose views to list — a local .dataset.yaml path or a cloud dataset id' -x
|
|
714
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
692
715
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -l json -d 'Output views as JSON instead of a table'
|
|
693
716
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
694
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
695
717
|
# ---------- dataset view run ----------
|
|
718
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
696
719
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s p -l param -d 'Positional parameter values for $1, $2, ... bindings; repeatable' -x
|
|
720
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
697
721
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table'
|
|
698
722
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
699
723
|
# ---------- dataset view create ----------
|
|
724
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s d -l dataset -d 'Dataset to add the view to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
700
725
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s n -l name -d 'View name' -x
|
|
701
726
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s q -l query -d 'SQL query the view executes' -x
|
|
702
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l id -d 'Override the generated view id' -x
|
|
727
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l view-id -d 'Override the generated view id (local only; cloud assigns its own)' -x
|
|
728
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
703
729
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
704
|
-
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -r -k -a '(__fish_complete_suffix .json)'
|
|
705
730
|
# ---------- dataset view delete ----------
|
|
731
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
732
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
706
733
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
707
734
|
# ---------- dataset view update ----------
|
|
735
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
|
|
708
736
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s n -l name -d 'New view name' -x
|
|
709
737
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s q -l query -d 'New SQL query' -x
|
|
738
|
+
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
|
|
710
739
|
complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
|
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.45.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
|
|
@@ -27,7 +27,7 @@ _postman() {
|
|
|
27
27
|
runner) _postman_runner ;;
|
|
28
28
|
spec) _postman_spec ;;
|
|
29
29
|
monitor) _postman_monitor ;;
|
|
30
|
-
workspace) _postman_workspace ;;
|
|
30
|
+
workspace|ws) _postman_workspace ;;
|
|
31
31
|
performance) _postman_performance ;;
|
|
32
32
|
flows|fl) _postman_flows ;;
|
|
33
33
|
request) _postman_request ;;
|
|
@@ -55,6 +55,7 @@ _postman_commands() {
|
|
|
55
55
|
'spec:Lint and validate Specifications from the command line'
|
|
56
56
|
'monitor:Invoke a monitor run and display results'
|
|
57
57
|
'workspace:Manage workspace resources.'
|
|
58
|
+
'ws:Alias for workspace'
|
|
58
59
|
'performance:Manage performance tests on your collections.'
|
|
59
60
|
'flows:Manage and interact with flows.'
|
|
60
61
|
'fl:Alias for flows'
|
|
@@ -149,9 +150,9 @@ _postman_collection_run() {
|
|
|
149
150
|
'--reporter-json-structure[\[Optional\] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.]' \
|
|
150
151
|
'(-n --iteration-count)'{-n,--iteration-count}'[Define the number of iterations to run]:n' \
|
|
151
152
|
'(-d --iteration-data)'{-d,--iteration-data}'[Specify a data file to use for iterations (either JSON or CSV)]:path:_files -g "*.(json|csv)"' \
|
|
152
|
-
'--iteration-data-dataset[\[BETA\] Path to a .dataset.yaml whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:
|
|
153
|
+
'--iteration-data-dataset[\[BETA\] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:pathOrId:_files -g "*.(json|csv)"' \
|
|
153
154
|
'--iteration-data-view[\[BETA\] Name or id of the view to execute (within --iteration-data-dataset). The view'\''s result set drives one iteration per row.]:nameOrId' \
|
|
154
|
-
'--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
155
|
+
'--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY\: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
155
156
|
'-i[Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default\: \[\])]:id' \
|
|
156
157
|
'--global-var[Allows the specification of global variables via the command line, in a key=value format]:value' \
|
|
157
158
|
'--env-var[Allows the specification of environment variables via the command line, in a key=value format (default\: \[\])]:value' \
|
|
@@ -368,6 +369,7 @@ _postman_workspace() {
|
|
|
368
369
|
case $state in
|
|
369
370
|
args)
|
|
370
371
|
case $words[1] in
|
|
372
|
+
list) _postman_workspace_list ;;
|
|
371
373
|
prepare) _postman_workspace_prepare ;;
|
|
372
374
|
push) _postman_workspace_push ;;
|
|
373
375
|
esac
|
|
@@ -378,12 +380,23 @@ _postman_workspace() {
|
|
|
378
380
|
_postman_workspace_commands() {
|
|
379
381
|
local -a sub
|
|
380
382
|
sub=(
|
|
383
|
+
'list:List all available Postman Workspaces'
|
|
381
384
|
'prepare:Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
382
385
|
'push:Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
|
|
383
386
|
)
|
|
384
387
|
_describe -t commands 'workspace command' sub
|
|
385
388
|
}
|
|
386
389
|
|
|
390
|
+
_postman_workspace_list() {
|
|
391
|
+
_arguments \
|
|
392
|
+
'(-f --filter)'{-f,--filter}'[Filter workspaces by name.]:name' \
|
|
393
|
+
'(-t --type)'{-t,--type}'[Filter workspaces by visibility type\: team, public, private, personal.]:type' \
|
|
394
|
+
'--verbose[Verbose output]' \
|
|
395
|
+
'--debug[Debug output]' \
|
|
396
|
+
'--json[JSON output]' \
|
|
397
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
398
|
+
}
|
|
399
|
+
|
|
387
400
|
_postman_workspace_prepare() {
|
|
388
401
|
_arguments \
|
|
389
402
|
'--verbose[Show detailed logging]' \
|
|
@@ -644,7 +657,7 @@ _postman_sdk_commands() {
|
|
|
644
657
|
local -a sub
|
|
645
658
|
sub=(
|
|
646
659
|
'init:Create or update .postman/config.json with an SDK configuration stub.'
|
|
647
|
-
'generate:Generate a new SDK from a Postman collection or specification.'
|
|
660
|
+
'generate:Generate a new SDK from a Postman collection or specification (OpenAPI or AsyncAPI).'
|
|
648
661
|
'build:Alias for generate'
|
|
649
662
|
'track:Enable change tracking for a generated SDK. Adds file hashes to .manifest.json so that the next `sdk generate` can detect your edits and preserve them via 3-way merge.'
|
|
650
663
|
'list:List SDK builds for a collection, extensible collection, or specification.'
|
|
@@ -1374,11 +1387,11 @@ _postman_dataset() {
|
|
|
1374
1387
|
_postman_dataset_commands() {
|
|
1375
1388
|
local -a sub
|
|
1376
1389
|
sub=(
|
|
1377
|
-
'list:\[BETA\] List dataset YAMLs under
|
|
1378
|
-
'get:\[BETA\] Print a dataset'\''s metadata and structure summary.'
|
|
1379
|
-
'query:\[BETA\] Run an ad-hoc SQL query against a dataset.'
|
|
1380
|
-
'create:\[BETA\] Scaffold a new
|
|
1381
|
-
'delete:\[BETA\] Permanently remove a dataset
|
|
1390
|
+
'list:\[BETA\] List local dataset YAMLs under a path, or (no path) a workspace'\''s cloud datasets.'
|
|
1391
|
+
'get:\[BETA\] Print a dataset'\''s metadata and structure summary (local YAML path or cloud id).'
|
|
1392
|
+
'query:\[BETA\] Run an ad-hoc SQL query against a dataset (local YAML path or cloud id).'
|
|
1393
|
+
'create:\[BETA\] Scaffold a new .dataset.yaml at <path>, or (no path, with -w) create a cloud dataset.'
|
|
1394
|
+
'delete:\[BETA\] Permanently remove a dataset\: a local .dataset.yaml (+ .resources/) or a cloud dataset id.'
|
|
1382
1395
|
'source:\[BETA\] Inspect and manage a dataset'\''s datasources.'
|
|
1383
1396
|
'view:\[BETA\] Inspect and manage saved views on a dataset.'
|
|
1384
1397
|
)
|
|
@@ -1387,6 +1400,8 @@ _postman_dataset_commands() {
|
|
|
1387
1400
|
|
|
1388
1401
|
_postman_dataset_list() {
|
|
1389
1402
|
_arguments \
|
|
1403
|
+
'(-w --workspace)'{-w,--workspace}'[Postman workspace ID (cloud list)]:id' \
|
|
1404
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1390
1405
|
'--json[Output as JSON instead of a table]' \
|
|
1391
1406
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1392
1407
|
'*:pathOrDir:_files -g "*.json"'
|
|
@@ -1394,26 +1409,31 @@ _postman_dataset_list() {
|
|
|
1394
1409
|
|
|
1395
1410
|
_postman_dataset_get() {
|
|
1396
1411
|
_arguments \
|
|
1397
|
-
'--
|
|
1412
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1413
|
+
'--no-populate[Skip fetching datasources/views for a cloud dataset]' \
|
|
1414
|
+
'--json[Output the full dataset as JSON]' \
|
|
1398
1415
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1399
|
-
'*:
|
|
1416
|
+
'*:datasetPathOrId:'
|
|
1400
1417
|
}
|
|
1401
1418
|
|
|
1402
1419
|
_postman_dataset_query() {
|
|
1403
1420
|
_arguments \
|
|
1404
1421
|
'(-q --query)'{-q,--query}'[SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")]:sql' \
|
|
1405
1422
|
'(-p --param)'{-p,--param}'[Positional parameter values for $1, $2, ... bindings; repeatable]:value...' \
|
|
1423
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1406
1424
|
'--json[Output rows as JSON instead of a table]' \
|
|
1407
1425
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1408
|
-
'*:
|
|
1426
|
+
'*:datasetPathOrId:'
|
|
1409
1427
|
}
|
|
1410
1428
|
|
|
1411
1429
|
_postman_dataset_create() {
|
|
1412
1430
|
_arguments \
|
|
1413
1431
|
'(-n --name)'{-n,--name}'[Human-readable name for the dataset]:name' \
|
|
1414
1432
|
'(-d --description)'{-d,--description}'[Optional description]:desc' \
|
|
1415
|
-
'--id[Override the generated dataset id (defaults to a random v4 UUID)]:uuid' \
|
|
1433
|
+
'--dataset-id[Override the generated dataset id (local only; defaults to a random v4 UUID)]:uuid' \
|
|
1416
1434
|
'--force[Overwrite an existing file at <path>]' \
|
|
1435
|
+
'(-w --workspace)'{-w,--workspace}'[Postman workspace ID (create a cloud dataset)]:id' \
|
|
1436
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1417
1437
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1418
1438
|
'*:path:_files -g "*.json"'
|
|
1419
1439
|
}
|
|
@@ -1421,9 +1441,10 @@ _postman_dataset_create() {
|
|
|
1421
1441
|
_postman_dataset_delete() {
|
|
1422
1442
|
_arguments \
|
|
1423
1443
|
'(-y --yes)'{-y,--yes}'[Skip the confirmation prompt]' \
|
|
1424
|
-
'--keep-resources[Delete only the YAML file; leave the .resources/ directory intact]' \
|
|
1444
|
+
'--keep-resources[Delete only the YAML file; leave the .resources/ directory intact (local only)]' \
|
|
1445
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1425
1446
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1426
|
-
'*:
|
|
1447
|
+
'*:datasetPathOrId:'
|
|
1427
1448
|
}
|
|
1428
1449
|
|
|
1429
1450
|
_postman_dataset_source() {
|
|
@@ -1448,9 +1469,9 @@ _postman_dataset_source() {
|
|
|
1448
1469
|
_postman_dataset_source_commands() {
|
|
1449
1470
|
local -a sub
|
|
1450
1471
|
sub=(
|
|
1451
|
-
'list:\[BETA\] List the datasources defined on a dataset.'
|
|
1472
|
+
'list:\[BETA\] List the datasources defined on a dataset (local YAML path or cloud id).'
|
|
1452
1473
|
'add:\[BETA\] Add a datasource to a dataset.'
|
|
1453
|
-
'remove:\[BETA\] Remove a datasource from a dataset.'
|
|
1474
|
+
'remove:\[BETA\] Remove a datasource from a dataset (local YAML path or cloud id).'
|
|
1454
1475
|
'update:\[BETA\] Update fields on an existing datasource. Only the flags you provide are changed.'
|
|
1455
1476
|
)
|
|
1456
1477
|
_describe -t commands 'source command' sub
|
|
@@ -1458,40 +1479,46 @@ _postman_dataset_source_commands() {
|
|
|
1458
1479
|
|
|
1459
1480
|
_postman_dataset_source_list() {
|
|
1460
1481
|
_arguments \
|
|
1482
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset whose sources to list — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1483
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1461
1484
|
'--json[Output sources as JSON instead of a table]' \
|
|
1462
|
-
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1463
|
-
'*:path:_files -g "*.json"'
|
|
1485
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1464
1486
|
}
|
|
1465
1487
|
|
|
1466
1488
|
_postman_dataset_source_add() {
|
|
1467
1489
|
_arguments \
|
|
1490
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset to add the source to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1468
1491
|
'(-n --name)'{-n,--name}'[Logical name for the source (becomes the SQL table name)]:name' \
|
|
1469
|
-
'--id[Override the generated source id]:uuid' \
|
|
1492
|
+
'--source-id[Override the generated source id]:uuid' \
|
|
1470
1493
|
'--format[Override the inferred format]:csv|json|mysql|postgres' \
|
|
1471
1494
|
'--type[Source kind; inferred from --file/--url when omitted]:local|remote-url|mysql|postgresql' \
|
|
1472
1495
|
'--file[Path to a local CSV/JSON file (absolute or cwd-relative)]:path:_files -g "*.json"' \
|
|
1473
|
-
'--ref-only[Reference the file in place; do NOT copy into data_dir]' \
|
|
1474
|
-
'--force[When copying, overwrite an existing file at the destination]' \
|
|
1496
|
+
'--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
|
|
1497
|
+
'--force[When copying, overwrite an existing file at the destination (local dataset)]' \
|
|
1498
|
+
'--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem csv/json source read by the local engine.]' \
|
|
1475
1499
|
'--url[HTTP(S) URL to a remote CSV/JSON file]:url' \
|
|
1476
1500
|
'--host[DB host (mysql/postgresql)]:host' \
|
|
1477
1501
|
'--port[DB port]:port' \
|
|
1478
1502
|
'--user[DB user (warning\: stored as plaintext in the YAML).]:user' \
|
|
1479
|
-
'--password[DB password
|
|
1503
|
+
'--password[DB password. WARNING\: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.]:password' \
|
|
1480
1504
|
'--database[DB database name]:db' \
|
|
1481
1505
|
'--table[DB table name (optional)]:table' \
|
|
1482
1506
|
'--slug[Optional slug for the source]:slug' \
|
|
1483
|
-
'
|
|
1484
|
-
'
|
|
1507
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1508
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1485
1509
|
}
|
|
1486
1510
|
|
|
1487
1511
|
_postman_dataset_source_remove() {
|
|
1488
1512
|
_arguments \
|
|
1513
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1514
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1489
1515
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1490
1516
|
'*:sourceNameOrId:'
|
|
1491
1517
|
}
|
|
1492
1518
|
|
|
1493
1519
|
_postman_dataset_source_update() {
|
|
1494
1520
|
_arguments \
|
|
1521
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1495
1522
|
'(-n --name)'{-n,--name}'[Rename the source]:name' \
|
|
1496
1523
|
'--format[Change the format]:csv|json|mysql|postgres' \
|
|
1497
1524
|
'--file[Replace the source'\''s file (local-filesystem only)]:path:_files -g "*.json"' \
|
|
@@ -1501,10 +1528,11 @@ _postman_dataset_source_update() {
|
|
|
1501
1528
|
'--host[Update DB host (mysql/postgresql)]:host' \
|
|
1502
1529
|
'--port[Update DB port]:port' \
|
|
1503
1530
|
'--user[Update DB user (warning\: stored as plaintext in the YAML).]:user' \
|
|
1504
|
-
'--password[Update DB password
|
|
1531
|
+
'--password[Update DB password. WARNING\: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.]:password' \
|
|
1505
1532
|
'--database[Update DB database name]:db' \
|
|
1506
1533
|
'--table[Update DB table name]:table' \
|
|
1507
1534
|
'--slug[Update slug]:slug' \
|
|
1535
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1508
1536
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1509
1537
|
'*:sourceNameOrId:'
|
|
1510
1538
|
}
|
|
@@ -1532,25 +1560,28 @@ _postman_dataset_view() {
|
|
|
1532
1560
|
_postman_dataset_view_commands() {
|
|
1533
1561
|
local -a sub
|
|
1534
1562
|
sub=(
|
|
1535
|
-
'list:\[BETA\] List the saved views defined on a dataset.'
|
|
1563
|
+
'list:\[BETA\] List the saved views defined on a dataset (local YAML path or cloud id).'
|
|
1536
1564
|
'run:\[BETA\] Execute a saved view against a dataset and print the rows.'
|
|
1537
|
-
'create:\[BETA\] Add a saved view to a dataset.'
|
|
1538
|
-
'delete:\[BETA\] Remove a saved view from a dataset.'
|
|
1539
|
-
'update:\[BETA\] Update name and/or query on an existing view.'
|
|
1565
|
+
'create:\[BETA\] Add a saved view to a dataset (local YAML path or cloud id).'
|
|
1566
|
+
'delete:\[BETA\] Remove a saved view from a dataset (local YAML path or cloud id).'
|
|
1567
|
+
'update:\[BETA\] Update name and/or query on an existing view (local YAML path or cloud id).'
|
|
1540
1568
|
)
|
|
1541
1569
|
_describe -t commands 'view command' sub
|
|
1542
1570
|
}
|
|
1543
1571
|
|
|
1544
1572
|
_postman_dataset_view_list() {
|
|
1545
1573
|
_arguments \
|
|
1574
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset whose views to list — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1575
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1546
1576
|
'--json[Output views as JSON instead of a table]' \
|
|
1547
|
-
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1548
|
-
'*:path:_files -g "*.json"'
|
|
1577
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1549
1578
|
}
|
|
1550
1579
|
|
|
1551
1580
|
_postman_dataset_view_run() {
|
|
1552
1581
|
_arguments \
|
|
1582
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1553
1583
|
'(-p --param)'{-p,--param}'[Positional parameter values for $1, $2, ... bindings; repeatable]:value...' \
|
|
1584
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1554
1585
|
'--json[Output rows as JSON instead of a table]' \
|
|
1555
1586
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1556
1587
|
'*:viewNameOrId:'
|
|
@@ -1558,23 +1589,28 @@ _postman_dataset_view_run() {
|
|
|
1558
1589
|
|
|
1559
1590
|
_postman_dataset_view_create() {
|
|
1560
1591
|
_arguments \
|
|
1592
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset to add the view to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1561
1593
|
'(-n --name)'{-n,--name}'[View name]:name' \
|
|
1562
1594
|
'(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
|
|
1563
|
-
'--id[Override the generated view id]:uuid' \
|
|
1564
|
-
'
|
|
1565
|
-
'
|
|
1595
|
+
'--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
|
|
1596
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1597
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1566
1598
|
}
|
|
1567
1599
|
|
|
1568
1600
|
_postman_dataset_view_delete() {
|
|
1569
1601
|
_arguments \
|
|
1602
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1603
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1570
1604
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1571
1605
|
'*:viewNameOrId:'
|
|
1572
1606
|
}
|
|
1573
1607
|
|
|
1574
1608
|
_postman_dataset_view_update() {
|
|
1575
1609
|
_arguments \
|
|
1610
|
+
'(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
1576
1611
|
'(-n --name)'{-n,--name}'[New view name]:name' \
|
|
1577
1612
|
'(-q --query)'{-q,--query}'[New SQL query]:sql' \
|
|
1613
|
+
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1578
1614
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1579
1615
|
'*:viewNameOrId:'
|
|
1580
1616
|
}
|