postman-cli-completion 1.55.0 → 1.56.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.55.0)
1
+ # Bash completion for Postman CLI (postman v1.56.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 init collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
25
+ local top_commands="login logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
26
26
  local global_flags="-v --version --silent --color -h --help -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -49,6 +49,7 @@ _postman() {
49
49
  login) _postman_login ;;
50
50
  logout) _postman_logout ;;
51
51
  init) _postman_init ;;
52
+ skills) _postman_skills ;;
52
53
  collection) _postman_collection ;;
53
54
  environment) _postman_environment ;;
54
55
  globals) _postman_globals ;;
@@ -94,7 +95,7 @@ _postman_logout() {
94
95
 
95
96
  _postman_init() {
96
97
  if [[ "$cur" == -* ]]; then
97
- COMPREPLY=( $(compgen -W "--json --dry-run --no-seed --spec --visibility --no-cloud --report-events -h --help" -- "$cur") )
98
+ COMPREPLY=( $(compgen -W "--json --dry-run --no-fetch --spec --visibility --no-cloud --report-events -h --help" -- "$cur") )
98
99
  return 0
99
100
  fi
100
101
  case "$prev" in
@@ -105,6 +106,37 @@ _postman_init() {
105
106
  _postman_filematch '!*.@(json)' "$cur"
106
107
  }
107
108
 
109
+ _postman_skills() {
110
+ if [[ -z "$subcmd" ]]; then
111
+ if [[ "$cur" == -* ]]; then
112
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
113
+ else
114
+ COMPREPLY=( $(compgen -W "status update" -- "$cur") )
115
+ fi
116
+ return 0
117
+ fi
118
+ case "$subcmd" in
119
+ status) _postman_skills_status ;;
120
+ update) _postman_skills_update ;;
121
+ esac
122
+ }
123
+
124
+ _postman_skills_status() {
125
+ if [[ "$cur" == -* ]]; then
126
+ COMPREPLY=( $(compgen -W "--json --strict -h --help" -- "$cur") )
127
+ return 0
128
+ fi
129
+ _postman_filematch '!*.@(json)' "$cur"
130
+ }
131
+
132
+ _postman_skills_update() {
133
+ if [[ "$cur" == -* ]]; then
134
+ COMPREPLY=( $(compgen -W "--json --dry-run --force -h --help" -- "$cur") )
135
+ return 0
136
+ fi
137
+ _postman_filematch '!*.@(json)' "$cur"
138
+ }
139
+
108
140
  _postman_collection() {
109
141
  if [[ -z "$subcmd" ]]; then
110
142
  if [[ "$cur" == -* ]]; then
@@ -490,7 +522,7 @@ _postman_performance() {
490
522
 
491
523
  _postman_performance_run() {
492
524
  if [[ "$cur" == -* ]]; then
493
- COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --runner --pass-if -h --help" -- "$cur") )
525
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --runner --pass-if --use-mock -h --help" -- "$cur") )
494
526
  return 0
495
527
  fi
496
528
  case "$prev" in
@@ -1,10 +1,10 @@
1
- # Fish completion for Postman CLI (postman v1.55.0)
1
+ # Fish completion for Postman CLI (postman v1.56.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 init collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
7
+ not __fish_seen_subcommand_from login logout init skills collection environment globals api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
8
8
  end
9
9
 
10
10
  function __postman_using_subcommand
@@ -24,6 +24,7 @@ complete -c postman -n __postman_no_subcommand -s h -l help -d 'display help for
24
24
  complete -c postman -n __postman_no_subcommand -a login -d 'Authenticate with Postman to access your resources.'
25
25
  complete -c postman -n __postman_no_subcommand -a logout -d 'Delete the stored Postman API key.'
26
26
  complete -c postman -n __postman_no_subcommand -a init -d 'Set up Postman artifacts and agent instructions in a repository.'
27
+ complete -c postman -n __postman_no_subcommand -a skills -d 'Check and update the agent skills in this repository.'
27
28
  complete -c postman -n __postman_no_subcommand -a collection -d 'Run and test your Postman collections directly from the command line.'
28
29
  complete -c postman -n __postman_no_subcommand -a environment -d 'Work with local Postman environments from the command line.'
29
30
  complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local Postman globals from the command line.'
@@ -61,7 +62,7 @@ complete -c postman -n '__fish_seen_subcommand_from logout' -s h -l help -d 'dis
61
62
  # ---------- init ----------
62
63
  complete -c postman -n '__fish_seen_subcommand_from init' -l json -d 'Emit machine-readable output for agents'
63
64
  complete -c postman -n '__fish_seen_subcommand_from init' -l dry-run -d 'Report what would happen without writing anything'
64
- complete -c postman -n '__fish_seen_subcommand_from init' -l no-seed -d 'Do not derive a spec from source'
65
+ 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'
65
66
  complete -c postman -n '__fish_seen_subcommand_from init' -l spec -d 'Which spec is authoritative, when more than one could be' -r
66
67
  complete -c postman -n '__fish_seen_subcommand_from init' -l visibility -d 'Create and bind a workspace non-interactively (personal or team)' -x
67
68
  complete -c postman -n '__fish_seen_subcommand_from init' -l no-cloud -d 'Skip the workspace step entirely'
@@ -69,6 +70,22 @@ complete -c postman -n '__fish_seen_subcommand_from init' -l report-events -d 'S
69
70
  complete -c postman -n '__fish_seen_subcommand_from init' -s h -l help -d 'display help for command'
70
71
  complete -c postman -n '__fish_seen_subcommand_from init' -r -k -a '(__fish_complete_suffix .json)'
71
72
 
73
+ # ---------- skills ----------
74
+ complete -c postman -n '__postman_using_subcommand skills status update' -a status -d 'Report whether this repository\'s skills are up to date.'
75
+ complete -c postman -n '__postman_using_subcommand skills status update' -a update -d 'Fetch the latest skills into this repository.'
76
+ complete -c postman -n '__fish_seen_subcommand_from skills' -s h -l help -d 'display help for command'
77
+ # ---------- skills status ----------
78
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from status' -l json -d 'Emit machine-readable output for agents'
79
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from status' -l strict -d 'Exit non-zero when the skills are not current'
80
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
81
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from status' -r -k -a '(__fish_complete_suffix .json)'
82
+ # ---------- skills update ----------
83
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -l json -d 'Emit machine-readable output for agents'
84
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -l dry-run -d 'Report what would change without writing anything'
85
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -l force -d 'Overwrite skill files that were edited locally'
86
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
87
+ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -r -k -a '(__fish_complete_suffix .json)'
88
+
72
89
  # ---------- collection ----------
73
90
  complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
74
91
  complete -c postman -n '__postman_using_subcommand collection migrate lint ai-readiness run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
@@ -293,6 +310,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
293
310
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l postman-api-key -d 'API Key used to load the resources from the Postman API (Only supported in the US region, use \'postman login --region\' to authenticate instead)' -x
294
311
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l runner -d 'Runner to execute the performance test on (local or postman-cloud) (default: local)' -x
295
312
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l pass-if -d 'Pass condition in format: function(metric, value). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500) or less_than(error_rate, 5)' -x
313
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l use-mock -d 'Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format: "<{{var}}|host> mock|mock-server:<path|id> [scenario]" (default: [])' -x
296
314
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
297
315
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
298
316
 
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.55.0)
3
+ # Zsh completion for Postman CLI (postman v1.56.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
@@ -23,6 +23,7 @@ _postman() {
23
23
  login) _postman_login ;;
24
24
  logout) _postman_logout ;;
25
25
  init) _postman_init ;;
26
+ skills) _postman_skills ;;
26
27
  collection) _postman_collection ;;
27
28
  environment) _postman_environment ;;
28
29
  globals) _postman_globals ;;
@@ -53,6 +54,7 @@ _postman_commands() {
53
54
  'login:Authenticate with Postman to access your resources.'
54
55
  'logout:Delete the stored Postman API key.'
55
56
  'init:Set up Postman artifacts and agent instructions in a repository.'
57
+ 'skills:Check and update the agent skills in this repository.'
56
58
  'collection:Run and test your Postman collections directly from the command line.'
57
59
  'environment:Work with local Postman environments from the command line.'
58
60
  'globals:Work with local Postman globals from the command line.'
@@ -98,7 +100,7 @@ _postman_init() {
98
100
  _arguments \
99
101
  '--json[Emit machine-readable output for agents]' \
100
102
  '--dry-run[Report what would happen without writing anything]' \
101
- '--no-seed[Do not derive a spec from source]' \
103
+ '--no-fetch[Use the skills bundled with this CLI instead of fetching the latest]' \
102
104
  '--spec[Which spec is authoritative, when more than one could be]:path:_files -g "*.(yaml|yml|json)"' \
103
105
  '--visibility[Create and bind a workspace non-interactively (personal or team)]:status' \
104
106
  '--no-cloud[Skip the workspace step entirely]' \
@@ -107,6 +109,49 @@ _postman_init() {
107
109
  '*:path:_files -g "*.json"'
108
110
  }
109
111
 
112
+ _postman_skills() {
113
+ local context state state_descr line
114
+ typeset -A opt_args
115
+ _arguments -C \
116
+ '(-h --help)'{-h,--help}'[display help for command]' \
117
+ '1: :_postman_skills_commands' \
118
+ '*::arg:->args'
119
+ case $state in
120
+ args)
121
+ case $words[1] in
122
+ status) _postman_skills_status ;;
123
+ update) _postman_skills_update ;;
124
+ esac
125
+ ;;
126
+ esac
127
+ }
128
+
129
+ _postman_skills_commands() {
130
+ local -a sub
131
+ sub=(
132
+ 'status:Report whether this repository'\''s skills are up to date.'
133
+ 'update:Fetch the latest skills into this repository.'
134
+ )
135
+ _describe -t commands 'skills command' sub
136
+ }
137
+
138
+ _postman_skills_status() {
139
+ _arguments \
140
+ '--json[Emit machine-readable output for agents]' \
141
+ '--strict[Exit non-zero when the skills are not current]' \
142
+ '(-h --help)'{-h,--help}'[display help for command]' \
143
+ '*:path:_files -g "*.json"'
144
+ }
145
+
146
+ _postman_skills_update() {
147
+ _arguments \
148
+ '--json[Emit machine-readable output for agents]' \
149
+ '--dry-run[Report what would change without writing anything]' \
150
+ '--force[Overwrite skill files that were edited locally]' \
151
+ '(-h --help)'{-h,--help}'[display help for command]' \
152
+ '*:path:_files -g "*.json"'
153
+ }
154
+
110
155
  _postman_collection() {
111
156
  local context state state_descr line
112
157
  typeset -A opt_args
@@ -587,6 +632,7 @@ _postman_performance_run() {
587
632
  '--postman-api-key[API Key used to load the resources from the Postman API (Only supported in the US region, use '\''postman login --region'\'' to authenticate instead)]:apiKey' \
588
633
  '--runner[Runner to execute the performance test on (local or postman-cloud) (default\: local)]:runner' \
589
634
  '--pass-if[Pass condition in format\: function(metric, value). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500) or less_than(error_rate, 5)]:condition' \
635
+ '--use-mock[Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format\: "<{{var}}|host> mock|mock-server\:<path|id> \[scenario\]" (default\: \[\])]:mapping' \
590
636
  '(-h --help)'{-h,--help}'[display help for command]' \
591
637
  '*:collectionId:_files -g "*.json"'
592
638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {