@robinmordasiewicz/xcsh 6.15.0 → 6.16.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.
@@ -3,68 +3,68 @@
3
3
  # shellcheck disable=SC2034,SC2207
4
4
 
5
5
  _xcsh_completions() {
6
- local cur prev words cword
7
- _init_completion || return
6
+ local cur prev words cword
7
+ _init_completion || return
8
8
 
9
- local commands="admin_console_and_ui api authentication bigip billing_and_usage blindfold bot_and_threat_defense cdn ce_management certificates cloud_infrastructure cloudstatus completion container_services data_and_privacy_security data_intelligence ddos dns generative_ai login managed_kubernetes marketplace network network_security nginx_one object_storage observability rate_limiting secops_and_incident_response service_mesh shape sites statistics subscription support telemetry_and_insights tenant_and_identity threat_campaign users virtual vpm_and_node_management waf apisec api-discovery authn oidc sso f5-bigip irule ltm bf encrypt secrets cache content cert certs ssl tls cloud infra provider vk8s containers workloads di intelligence insights dos ddos-protect dns-zone zones ai genai assistant mk8s appstack k8s-mgmt market addons extensions net routing bgp netsec nfw nginx nms nginx-plus storage s3 buckets obs monitoring synth ratelimit throttle policer mesh svc-mesh shape-sec safeap site deployment stats metrics logs tickets help-desk telemetry ti threats campaigns threat-intel user accounts iam lb loadbalancer vhost vpm nodes node-mgmt firewall appfw help quit exit clear history"
10
- local actions="list get create delete replace apply status patch add-labels remove-labels"
11
- local builtins="help quit exit clear history context ctx"
12
- local global_flags="--help -h --version -v --interactive -i --no-color --output -o --namespace -ns"
9
+ local commands="admin_console_and_ui api authentication bigip billing_and_usage blindfold bot_and_threat_defense cdn ce_management certificates cloud_infrastructure cloudstatus completion container_services data_and_privacy_security data_intelligence ddos dns generative_ai login managed_kubernetes marketplace network network_security nginx_one object_storage observability rate_limiting secops_and_incident_response service_mesh shape sites statistics subscription support telemetry_and_insights tenant_and_identity threat_campaign users virtual vpm_and_node_management waf apisec api-discovery authn oidc sso f5-bigip irule ltm bf encrypt secrets cache content cert certs ssl tls cloud infra provider vk8s containers workloads di intelligence insights dos ddos-protect dns-zone zones ai genai assistant mk8s appstack k8s-mgmt market addons extensions net routing bgp netsec nfw nginx nms nginx-plus storage s3 buckets obs monitoring synth ratelimit throttle policer mesh svc-mesh shape-sec safeap site deployment stats metrics logs tickets help-desk telemetry ti threats campaigns threat-intel user accounts iam lb loadbalancer vhost vpm nodes node-mgmt firewall appfw help quit exit clear history"
10
+ local actions="list get create delete replace apply status patch add-labels remove-labels"
11
+ local builtins="help quit exit clear history context ctx"
12
+ local global_flags="--help -h --version -v --interactive -i --no-color --output -o --namespace -ns"
13
13
 
14
- # Handle completion based on position
15
- case ${cword} in
16
- 1)
17
- # First word: domains, builtins, or flags
18
- if [[ "${cur}" == -* ]]; then
19
- COMPREPLY=( $(compgen -W "${global_flags}" -- "${cur}") )
20
- else
21
- COMPREPLY=( $(compgen -W "${commands} ${builtins}" -- "${cur}") )
22
- fi
23
- return 0
24
- ;;
25
- 2)
26
- # Second word: actions or subcommands based on first word
27
- local domain="${words[1]}"
28
- case "${domain}" in
14
+ # Handle completion based on position
15
+ case ${cword} in
16
+ 1)
17
+ # First word: domains, builtins, or flags
18
+ if [[ "${cur}" == -* ]]; then
19
+ COMPREPLY=($(compgen -W "${global_flags}" -- "${cur}"))
20
+ else
21
+ COMPREPLY=($(compgen -W "${commands} ${builtins}" -- "${cur}"))
22
+ fi
23
+ return 0
24
+ ;;
25
+ 2)
26
+ # Second word: actions or subcommands based on first word
27
+ local domain="${words[1]}"
28
+ case "${domain}" in
29
29
  login)
30
- COMPREPLY=( $(compgen -W "show profile context" -- "${cur}") )
31
- return 0
32
- ;;
30
+ COMPREPLY=($(compgen -W "show profile context" -- "${cur}"))
31
+ return 0
32
+ ;;
33
33
  login/profile)
34
- COMPREPLY=( $(compgen -W "list show create use delete" -- "${cur}") )
35
- return 0
36
- ;;
34
+ COMPREPLY=($(compgen -W "list show create use delete" -- "${cur}"))
35
+ return 0
36
+ ;;
37
37
  login/context)
38
- COMPREPLY=( $(compgen -W "show set list" -- "${cur}") )
39
- return 0
40
- ;;
38
+ COMPREPLY=($(compgen -W "show set list" -- "${cur}"))
39
+ return 0
40
+ ;;
41
41
  cloudstatus)
42
- COMPREPLY=( $(compgen -W "status summary components incidents maintenance" -- "${cur}") )
43
- return 0
44
- ;;
42
+ COMPREPLY=($(compgen -W "status summary components incidents maintenance" -- "${cur}"))
43
+ return 0
44
+ ;;
45
45
  completion)
46
- COMPREPLY=( $(compgen -W "bash zsh fish" -- "${cur}") )
47
- return 0
48
- ;;
49
- help|quit|exit|clear|history|context|ctx)
50
- return 0
51
- ;;
52
- *)
53
- # API domain - suggest actions
54
- COMPREPLY=( $(compgen -W "${actions}" -- "${cur}") )
55
- return 0
56
- ;;
57
- esac
58
- ;;
46
+ COMPREPLY=($(compgen -W "bash zsh fish" -- "${cur}"))
47
+ return 0
48
+ ;;
49
+ help | quit | exit | clear | history | context | ctx)
50
+ return 0
51
+ ;;
59
52
  *)
60
- # Third+ word: flags
61
- if [[ "${cur}" == -* ]]; then
62
- local action_flags="--name -n --namespace -ns --output -o --json --yaml --limit --label"
63
- COMPREPLY=( $(compgen -W "${action_flags}" -- "${cur}") )
64
- fi
65
- return 0
66
- ;;
67
- esac
53
+ # API domain - suggest actions
54
+ COMPREPLY=($(compgen -W "${actions}" -- "${cur}"))
55
+ return 0
56
+ ;;
57
+ esac
58
+ ;;
59
+ *)
60
+ # Third+ word: flags
61
+ if [[ "${cur}" == -* ]]; then
62
+ local action_flags="--name -n --namespace -ns --output -o --json --yaml --limit --label"
63
+ COMPREPLY=($(compgen -W "${action_flags}" -- "${cur}"))
64
+ fi
65
+ return 0
66
+ ;;
67
+ esac
68
68
  }
69
69
 
70
70
  complete -F _xcsh_completions xcsh
package/dist/index.js CHANGED
@@ -44983,8 +44983,8 @@ var HistoryManager = class _HistoryManager {
44983
44983
  var CLI_NAME = "xcsh";
44984
44984
  var CLI_FULL_NAME = "F5 Distributed Cloud Shell";
44985
44985
  function getVersion() {
44986
- if ("6.15.0") {
44987
- return "6.15.0";
44986
+ if ("6.16.0") {
44987
+ return "6.16.0";
44988
44988
  }
44989
44989
  if (process.env.XCSH_VERSION) {
44990
44990
  return process.env.XCSH_VERSION;
@@ -49376,17 +49376,17 @@ function generateBashCompletion() {
49376
49376
  ];
49377
49377
  customDomainCompletions.push(
49378
49378
  ` ${domain.name})`,
49379
- ` COMPREPLY=( $(compgen -W "${allCommands.join(" ")}" -- "\${cur}") )`,
49380
- ` return 0`,
49381
- ` ;;`
49379
+ ` COMPREPLY=($(compgen -W "${allCommands.join(" ")}" -- "\${cur}"))`,
49380
+ ` return 0`,
49381
+ ` ;;`
49382
49382
  );
49383
49383
  }
49384
49384
  for (const [groupName, groupCommands] of subcommands) {
49385
49385
  customDomainCompletions.push(
49386
49386
  ` ${domain.name}/${groupName})`,
49387
- ` COMPREPLY=( $(compgen -W "${groupCommands.join(" ")}" -- "\${cur}") )`,
49388
- ` return 0`,
49389
- ` ;;`
49387
+ ` COMPREPLY=($(compgen -W "${groupCommands.join(" ")}" -- "\${cur}"))`,
49388
+ ` return 0`,
49389
+ ` ;;`
49390
49390
  );
49391
49391
  }
49392
49392
  }
@@ -49395,49 +49395,49 @@ function generateBashCompletion() {
49395
49395
  # shellcheck disable=SC2034,SC2207
49396
49396
 
49397
49397
  _xcsh_completions() {
49398
- local cur prev words cword
49399
- _init_completion || return
49400
-
49401
- local commands="${domainNames} ${allAliases} help quit exit clear history"
49402
- local actions="${actions}"
49403
- local builtins="help quit exit clear history context ctx"
49404
- local global_flags="--help -h --version -v --interactive -i --no-color --output -o --namespace -ns"
49405
-
49406
- # Handle completion based on position
49407
- case \${cword} in
49408
- 1)
49409
- # First word: domains, builtins, or flags
49410
- if [[ "\${cur}" == -* ]]; then
49411
- COMPREPLY=( $(compgen -W "\${global_flags}" -- "\${cur}") )
49412
- else
49413
- COMPREPLY=( $(compgen -W "\${commands} \${builtins}" -- "\${cur}") )
49414
- fi
49415
- return 0
49416
- ;;
49417
- 2)
49418
- # Second word: actions or subcommands based on first word
49419
- local domain="\${words[1]}"
49420
- case "\${domain}" in
49398
+ local cur prev words cword
49399
+ _init_completion || return
49400
+
49401
+ local commands="${domainNames} ${allAliases} help quit exit clear history"
49402
+ local actions="${actions}"
49403
+ local builtins="help quit exit clear history context ctx"
49404
+ local global_flags="--help -h --version -v --interactive -i --no-color --output -o --namespace -ns"
49405
+
49406
+ # Handle completion based on position
49407
+ case \${cword} in
49408
+ 1)
49409
+ # First word: domains, builtins, or flags
49410
+ if [[ "\${cur}" == -* ]]; then
49411
+ COMPREPLY=($(compgen -W "\${global_flags}" -- "\${cur}"))
49412
+ else
49413
+ COMPREPLY=($(compgen -W "\${commands} \${builtins}" -- "\${cur}"))
49414
+ fi
49415
+ return 0
49416
+ ;;
49417
+ 2)
49418
+ # Second word: actions or subcommands based on first word
49419
+ local domain="\${words[1]}"
49420
+ case "\${domain}" in
49421
49421
  ${customDomainCompletions.join("\n")}
49422
- help|quit|exit|clear|history|context|ctx)
49423
- return 0
49424
- ;;
49425
- *)
49426
- # API domain - suggest actions
49427
- COMPREPLY=( $(compgen -W "\${actions}" -- "\${cur}") )
49428
- return 0
49429
- ;;
49430
- esac
49431
- ;;
49422
+ help | quit | exit | clear | history | context | ctx)
49423
+ return 0
49424
+ ;;
49432
49425
  *)
49433
- # Third+ word: flags
49434
- if [[ "\${cur}" == -* ]]; then
49435
- local action_flags="--name -n --namespace -ns --output -o --json --yaml --limit --label"
49436
- COMPREPLY=( $(compgen -W "\${action_flags}" -- "\${cur}") )
49437
- fi
49438
- return 0
49439
- ;;
49440
- esac
49426
+ # API domain - suggest actions
49427
+ COMPREPLY=($(compgen -W "\${actions}" -- "\${cur}"))
49428
+ return 0
49429
+ ;;
49430
+ esac
49431
+ ;;
49432
+ *)
49433
+ # Third+ word: flags
49434
+ if [[ "\${cur}" == -* ]]; then
49435
+ local action_flags="--name -n --namespace -ns --output -o --json --yaml --limit --label"
49436
+ COMPREPLY=($(compgen -W "\${action_flags}" -- "\${cur}"))
49437
+ fi
49438
+ return 0
49439
+ ;;
49440
+ esac
49441
49441
  }
49442
49442
 
49443
49443
  complete -F _xcsh_completions xcsh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinmordasiewicz/xcsh",
3
- "version": "6.15.0",
3
+ "version": "6.16.0",
4
4
  "description": "F5 Distributed Cloud Shell - Interactive CLI for F5 XC",
5
5
  "type": "module",
6
6
  "bin": {