postman-cli-completion 1.76.0 → 1.80.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.76.0)
1
+ # Bash completion for Postman CLI (postman v1.80.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="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation team update webhook"
25
+ local top_commands="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation status team update webhook"
26
26
  local global_flags="--color -h --help --silent -v --version -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -74,6 +74,7 @@ _postman() {
74
74
  performance) _postman_performance ;;
75
75
  secret) _postman_secret ;;
76
76
  simulation) _postman_simulation ;;
77
+ status) _postman_status ;;
77
78
  team) _postman_team ;;
78
79
  update) _postman_update ;;
79
80
  webhook) _postman_webhook ;;
@@ -121,7 +122,7 @@ _postman_collection() {
121
122
  if [[ "$cur" == -* ]]; then
122
123
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
123
124
  else
124
- COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync request folder example import list run" -- "$cur") )
125
+ COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get delete publish generate sync share request folder example import list run" -- "$cur") )
125
126
  fi
126
127
  return 0
127
128
  fi
@@ -135,6 +136,7 @@ _postman_collection() {
135
136
  publish) _postman_collection_publish ;;
136
137
  generate) _postman_collection_generate ;;
137
138
  sync) _postman_collection_sync ;;
139
+ share) _postman_collection_share ;;
138
140
  request) _postman_collection_request ;;
139
141
  folder) _postman_collection_folder ;;
140
142
  example) _postman_collection_example ;;
@@ -283,6 +285,18 @@ _postman_collection_sync_spec() {
283
285
  _postman_filematch '!*.@(json)' "$cur"
284
286
  }
285
287
 
288
+ _postman_collection_share() {
289
+ if [[ "$cur" == -* ]]; then
290
+ COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
291
+ return 0
292
+ fi
293
+ case "$prev" in
294
+ --api-key)
295
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
296
+ return 0 ;;
297
+ esac
298
+ }
299
+
286
300
  _postman_collection_request() {
287
301
  if [[ -z "$subcmd" ]]; then
288
302
  if [[ "$cur" == -* ]]; then
@@ -849,7 +863,7 @@ _postman_environment() {
849
863
  if [[ "$cur" == -* ]]; then
850
864
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
851
865
  else
852
- COMPREPLY=( $(compgen -W "new list get delete var lint" -- "$cur") )
866
+ COMPREPLY=( $(compgen -W "new list get share delete var lint" -- "$cur") )
853
867
  fi
854
868
  return 0
855
869
  fi
@@ -857,6 +871,7 @@ _postman_environment() {
857
871
  new) _postman_environment_new ;;
858
872
  list) _postman_environment_list ;;
859
873
  get) _postman_environment_get ;;
874
+ share) _postman_environment_share ;;
860
875
  delete) _postman_environment_delete ;;
861
876
  var) _postman_environment_var ;;
862
877
  lint) _postman_environment_lint ;;
@@ -889,6 +904,19 @@ _postman_environment_get() {
889
904
  _postman_filematch '!*.@(json)' "$cur"
890
905
  }
891
906
 
907
+ _postman_environment_share() {
908
+ if [[ "$cur" == -* ]]; then
909
+ COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
910
+ return 0
911
+ fi
912
+ case "$prev" in
913
+ --api-key)
914
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
915
+ return 0 ;;
916
+ esac
917
+ _postman_filematch '!*.@(json)' "$cur"
918
+ }
919
+
892
920
  _postman_environment_delete() {
893
921
  if [[ "$cur" == -* ]]; then
894
922
  COMPREPLY=( $(compgen -W "-y --yes --verbose --json -h --help" -- "$cur") )
@@ -1198,13 +1226,16 @@ _postman_mock() {
1198
1226
 
1199
1227
  _postman_mock_generate() {
1200
1228
  if [[ "$cur" == -* ]]; then
1201
- COMPREPLY=( $(compgen -W "-o --output -n --name --port --stateful --force -u --update -w --workspace --deploy --public -s --slug --json --api-key -x --suppress-exit-code -h --help" -- "$cur") )
1229
+ COMPREPLY=( $(compgen -W "-o --output -n --name --port --mode --stateful --instructions --spec --collection --dataset --force -u --update -w --workspace --deploy --public -s --slug --timeout --api-key --json -x --suppress-exit-code -h --help" -- "$cur") )
1202
1230
  return 0
1203
1231
  fi
1204
1232
  case "$prev" in
1205
1233
  -o|--output)
1206
1234
  _postman_filematch '!*.@(json)' "$cur"
1207
1235
  return 0 ;;
1236
+ --collection)
1237
+ _postman_filematch '!*.@(json)' "$cur"
1238
+ return 0 ;;
1208
1239
  -u|--update)
1209
1240
  _postman_filematch '!*.@(json)' "$cur"
1210
1241
  return 0 ;;
@@ -1238,7 +1269,7 @@ _postman_mock_run() {
1238
1269
 
1239
1270
  _postman_mock_push() {
1240
1271
  if [[ "$cur" == -* ]]; then
1241
- COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1272
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
1242
1273
  return 0
1243
1274
  fi
1244
1275
  case "$prev" in
@@ -1303,7 +1334,7 @@ _postman_mock_log() {
1303
1334
 
1304
1335
  _postman_mock_delete() {
1305
1336
  if [[ "$cur" == -* ]]; then
1306
- COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
1337
+ COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
1307
1338
  return 0
1308
1339
  fi
1309
1340
  case "$prev" in
@@ -1319,7 +1350,7 @@ _postman_monitor() {
1319
1350
  if [[ "$cur" == -* ]]; then
1320
1351
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1321
1352
  else
1322
- COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume" -- "$cur") )
1353
+ COMPREPLY=( $(compgen -W "run create update delete jobs runs list get metrics pause resume share" -- "$cur") )
1323
1354
  fi
1324
1355
  return 0
1325
1356
  fi
@@ -1335,6 +1366,7 @@ _postman_monitor() {
1335
1366
  metrics) _postman_monitor_metrics ;;
1336
1367
  pause) _postman_monitor_pause ;;
1337
1368
  resume) _postman_monitor_resume ;;
1369
+ share) _postman_monitor_share ;;
1338
1370
  esac
1339
1371
  }
1340
1372
 
@@ -1453,7 +1485,7 @@ _postman_monitor_runs_get() {
1453
1485
 
1454
1486
  _postman_monitor_list() {
1455
1487
  if [[ "$cur" == -* ]]; then
1456
- COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection -e --environment --runner --owner --team --active --limit --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
1488
+ COMPREPLY=( $(compgen -W "--api-key -w --workspace -c --collection -e --environment --runner --owner --active --limit --cursor --columns --no-headers -f --filter --sort --json -h --help" -- "$cur") )
1457
1489
  return 0
1458
1490
  fi
1459
1491
  case "$prev" in
@@ -1511,6 +1543,18 @@ _postman_monitor_resume() {
1511
1543
  esac
1512
1544
  }
1513
1545
 
1546
+ _postman_monitor_share() {
1547
+ if [[ "$cur" == -* ]]; then
1548
+ COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
1549
+ return 0
1550
+ fi
1551
+ case "$prev" in
1552
+ --api-key)
1553
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1554
+ return 0 ;;
1555
+ esac
1556
+ }
1557
+
1514
1558
  _postman_request() {
1515
1559
  if [[ "$cur" == -* ]]; then
1516
1560
  COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
@@ -1940,7 +1984,7 @@ _postman_workspace() {
1940
1984
  if [[ "$cur" == -* ]]; then
1941
1985
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1942
1986
  else
1943
- COMPREPLY=( $(compgen -W "list prepare push lint get activity create delete pull connect-git disconnect-git diff" -- "$cur") )
1987
+ COMPREPLY=( $(compgen -W "list prepare push lint get context activity create delete share pull connect-git disconnect-git diff" -- "$cur") )
1944
1988
  fi
1945
1989
  return 0
1946
1990
  fi
@@ -1950,9 +1994,10 @@ _postman_workspace() {
1950
1994
  push) _postman_workspace_push ;;
1951
1995
  lint) _postman_workspace_lint ;;
1952
1996
  get) _postman_workspace_get ;;
1953
- activity) _postman_workspace_activity ;;
1997
+ context|activity) _postman_workspace_context ;;
1954
1998
  create) _postman_workspace_create ;;
1955
1999
  delete) _postman_workspace_delete ;;
2000
+ share) _postman_workspace_share ;;
1956
2001
  pull) _postman_workspace_pull ;;
1957
2002
  connect-git) _postman_workspace_connect_git ;;
1958
2003
  disconnect-git) _postman_workspace_disconnect_git ;;
@@ -1978,7 +2023,7 @@ _postman_workspace_prepare() {
1978
2023
 
1979
2024
  _postman_workspace_push() {
1980
2025
  if [[ "$cur" == -* ]]; then
1981
- COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
2026
+ COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy -m --message --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
1982
2027
  return 0
1983
2028
  fi
1984
2029
  case "$prev" in
@@ -2003,9 +2048,9 @@ _postman_workspace_get() {
2003
2048
  esac
2004
2049
  }
2005
2050
 
2006
- _postman_workspace_activity() {
2051
+ _postman_workspace_context() {
2007
2052
  if [[ "$cur" == -* ]]; then
2008
- COMPREPLY=( $(compgen -W "--type --contributor --cursor --limit --markdown --json --timeout -h --help" -- "$cur") )
2053
+ COMPREPLY=( $(compgen -W "--type --contributor --cursor --limit --markdown --json --brief --timeout -h --help" -- "$cur") )
2009
2054
  return 0
2010
2055
  fi
2011
2056
  case "$prev" in
@@ -2033,6 +2078,18 @@ _postman_workspace_delete() {
2033
2078
  esac
2034
2079
  }
2035
2080
 
2081
+ _postman_workspace_share() {
2082
+ if [[ "$cur" == -* ]]; then
2083
+ COMPREPLY=( $(compgen -W "--user --role --json --timeout --api-key -h --help" -- "$cur") )
2084
+ return 0
2085
+ fi
2086
+ case "$prev" in
2087
+ --api-key)
2088
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
2089
+ return 0 ;;
2090
+ esac
2091
+ }
2092
+
2036
2093
  _postman_workspace_pull() {
2037
2094
  if [[ "$cur" == -* ]]; then
2038
2095
  COMPREPLY=( $(compgen -W "-y --yes --source-workspace --json --verbose -h --help" -- "$cur") )
@@ -2335,7 +2392,7 @@ _postman_describe_environment_get() {
2335
2392
 
2336
2393
  _postman_init() {
2337
2394
  if [[ "$cur" == -* ]]; then
2338
- COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
2395
+ COMPREPLY=( $(compgen -W "--json --dry-run --spec --visibility -y --yes --report-events -h --help" -- "$cur") )
2339
2396
  return 0
2340
2397
  fi
2341
2398
  case "$prev" in
@@ -2798,7 +2855,7 @@ _postman_simulation_get() {
2798
2855
 
2799
2856
  _postman_simulation_run() {
2800
2857
  if [[ "$cur" == -* ]]; then
2801
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --verbose --proxy --proxy-port --scenario --session --log-format --log-body --doctor -h --help" -- "$cur") )
2858
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --verbose --proxy --proxy-port --scenario --session --log-format --log-body --doctor --lift -h --help" -- "$cur") )
2802
2859
  return 0
2803
2860
  fi
2804
2861
  case "$prev" in
@@ -2819,7 +2876,7 @@ _postman_simulation_run() {
2819
2876
 
2820
2877
  _postman_simulation_push() {
2821
2878
  if [[ "$cur" == -* ]]; then
2822
- COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
2879
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
2823
2880
  return 0
2824
2881
  fi
2825
2882
  case "$prev" in
@@ -2874,7 +2931,7 @@ _postman_simulation_log() {
2874
2931
 
2875
2932
  _postman_simulation_delete() {
2876
2933
  if [[ "$cur" == -* ]]; then
2877
- COMPREPLY=( $(compgen -W "-y --yes --api-key -h --help" -- "$cur") )
2934
+ COMPREPLY=( $(compgen -W "-y --yes --api-key --json -h --help" -- "$cur") )
2878
2935
  return 0
2879
2936
  fi
2880
2937
  case "$prev" in
@@ -2884,6 +2941,14 @@ _postman_simulation_delete() {
2884
2941
  esac
2885
2942
  }
2886
2943
 
2944
+ _postman_status() {
2945
+ if [[ "$cur" == -* ]]; then
2946
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
2947
+ return 0
2948
+ fi
2949
+ COMPREPLY=( $(compgen -d -- "$cur") )
2950
+ }
2951
+
2887
2952
  _postman_team() {
2888
2953
  if [[ -z "$subcmd" ]]; then
2889
2954
  if [[ "$cur" == -* ]]; then