aspera-cli 4.27.1 → 4.27.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +67 -1
- data/bin/ascli +2 -1
- data/docs/README.md +805 -747
- data/lib/aspera/agent/connect.rb +6 -4
- data/lib/aspera/agent/desktop.rb +2 -2
- data/lib/aspera/agent/direct.rb +3 -1
- data/lib/aspera/agent/node.rb +3 -3
- data/lib/aspera/api/alee.rb +1 -1
- data/lib/aspera/api/aoc.rb +14 -12
- data/lib/aspera/api/ats.rb +1 -1
- data/lib/aspera/api/cos_node.rb +2 -2
- data/lib/aspera/api/faspex.rb +9 -7
- data/lib/aspera/api/httpgw.rb +37 -33
- data/lib/aspera/api/node.rb +38 -33
- data/lib/aspera/ascmd.rb +3 -1
- data/lib/aspera/ascp/installation.rb +62 -27
- data/lib/aspera/ascp/management.rb +1 -0
- data/lib/aspera/assert.rb +4 -0
- data/lib/aspera/cli/ascp_actions.rb +20 -41
- data/lib/aspera/cli/async_transfer_store.rb +2 -2
- data/lib/aspera/cli/bootstrapper.rb +11 -15
- data/lib/aspera/cli/command_line.rb +252 -0
- data/lib/aspera/cli/command_registry.rb +149 -33
- data/lib/aspera/cli/command_spec.rb +103 -14
- data/lib/aspera/cli/completion/ascli.bash +12 -0
- data/lib/aspera/cli/completion/ascli.fish +16 -0
- data/lib/aspera/cli/completion/ascli.zsh +19 -0
- data/lib/aspera/cli/context.rb +3 -0
- data/lib/aspera/cli/deprecation.rb +37 -0
- data/lib/aspera/cli/extended_value.rb +2 -0
- data/lib/aspera/cli/formatter.rb +87 -75
- data/lib/aspera/cli/gem_checker.rb +1 -1
- data/lib/aspera/cli/hints.rb +7 -6
- data/lib/aspera/cli/http.rb +21 -21
- data/lib/aspera/cli/info.rb +3 -0
- data/lib/aspera/cli/mcp_tool.rb +47 -83
- data/lib/aspera/cli/option_declarator.rb +33 -42
- data/lib/aspera/cli/option_registry.rb +69 -0
- data/lib/aspera/cli/option_types.rb +103 -0
- data/lib/aspera/cli/option_value.rb +281 -0
- data/lib/aspera/cli/options.schema.yaml +38 -5
- data/lib/aspera/cli/parser.rb +307 -848
- data/lib/aspera/cli/plugins/alee.rb +7 -4
- data/lib/aspera/cli/plugins/aoc.rb +435 -380
- data/lib/aspera/cli/plugins/ats.rb +58 -73
- data/lib/aspera/cli/plugins/base.rb +190 -240
- data/lib/aspera/cli/plugins/basic_auth.rb +2 -10
- data/lib/aspera/cli/plugins/config.rb +244 -178
- data/lib/aspera/cli/plugins/console.rb +102 -38
- data/lib/aspera/cli/plugins/cos.rb +6 -23
- data/lib/aspera/cli/plugins/factory.rb +3 -0
- data/lib/aspera/cli/plugins/faspex5.rb +176 -173
- data/lib/aspera/cli/plugins/faspio.rb +5 -10
- data/lib/aspera/cli/plugins/httpgw.rb +8 -11
- data/lib/aspera/cli/plugins/mcp.rb +20 -55
- data/lib/aspera/cli/plugins/node.rb +277 -311
- data/lib/aspera/cli/plugins/orchestrator.rb +90 -77
- data/lib/aspera/cli/plugins/preview.rb +79 -90
- data/lib/aspera/cli/plugins/server.rb +76 -50
- data/lib/aspera/cli/plugins/shares.rb +68 -116
- data/lib/aspera/cli/preset_actions.rb +17 -10
- data/lib/aspera/cli/preset_manager.rb +12 -2
- data/lib/aspera/cli/prompt.rb +35 -0
- data/lib/aspera/cli/result.rb +13 -18
- data/lib/aspera/cli/runner.rb +31 -54
- data/lib/aspera/cli/special_values.rb +5 -0
- data/lib/aspera/cli/sync_actions.rb +41 -37
- data/lib/aspera/cli/terminal_formatter.rb +9 -3
- data/lib/aspera/cli/transfer_actions.rb +0 -6
- data/lib/aspera/cli/transfer_agent.rb +29 -35
- data/lib/aspera/cli/vault_manager.rb +0 -17
- data/lib/aspera/cli/version.rb +1 -1
- data/lib/aspera/cli/wizard.rb +4 -2
- data/lib/aspera/command_line_builder.rb +1 -0
- data/lib/aspera/coverage.rb +1 -0
- data/lib/aspera/environment.rb +7 -1
- data/lib/aspera/faspex_gw.rb +2 -1
- data/lib/aspera/faspex_postproc.rb +1 -0
- data/lib/aspera/graphql.rb +5 -5
- data/lib/aspera/json_rpc/client.rb +5 -5
- data/lib/aspera/keychain/encrypted_hash.rb +1 -1
- data/lib/aspera/keychain/one_password_api.rb +1 -1
- data/lib/aspera/link_header.rb +2 -2
- data/lib/aspera/log.rb +22 -25
- data/lib/aspera/markdown.rb +2 -0
- data/lib/aspera/mime.rb +25 -0
- data/lib/aspera/node_simulator.rb +1 -0
- data/lib/aspera/oauth/base.rb +35 -25
- data/lib/aspera/oauth/factory.rb +1 -0
- data/lib/aspera/oauth/generic.rb +1 -1
- data/lib/aspera/oauth/jwt.rb +1 -1
- data/lib/aspera/oauth/web.rb +9 -8
- data/lib/aspera/preview/file_types.rb +4 -4
- data/lib/aspera/preview/generator.rb +7 -0
- data/lib/aspera/preview/options.rb +4 -4
- data/lib/aspera/preview/terminal.rb +4 -3
- data/lib/aspera/preview/utils.rb +9 -6
- data/lib/aspera/products/connect.rb +1 -1
- data/lib/aspera/rainbow.rb +7 -0
- data/lib/aspera/rest/aspera_errors.rb +60 -0
- data/lib/aspera/rest/call_error.rb +27 -0
- data/lib/aspera/rest/client.rb +514 -0
- data/lib/aspera/rest/error_analyzer.rb +113 -0
- data/lib/aspera/rest/list.rb +143 -0
- data/lib/aspera/rest/parameters.rb +55 -0
- data/lib/aspera/rest/util.rb +176 -0
- data/lib/aspera/rest.rb +7 -621
- data/lib/aspera/schema/IBM Aspera Console-enhanced.yaml +1125 -0
- data/lib/aspera/schema/IBM Aspera on Cloud API-0.2.6-enhanced.yaml +39 -0
- data/lib/aspera/schema/IBM Aspera on Cloud Automation API-1.0.5-enhanced.yaml +2395 -0
- data/lib/aspera/schema/documentation.rb +13 -3
- data/lib/aspera/schema/registry.rb +18 -1
- data/lib/aspera/schema/validator.rb +92 -0
- data/lib/aspera/secret_hider.rb +36 -25
- data/lib/aspera/string_ext.rb +15 -0
- data/lib/aspera/temp_file_manager.rb +6 -5
- data/lib/aspera/transfer/parameters.rb +2 -0
- data/lib/aspera/transfer/spec.rb +1 -0
- data/lib/aspera/transfer/spec.schema.yaml +1 -0
- data/lib/aspera/uri_reader.rb +11 -11
- data/lib/aspera/web_auth/index.html +147 -0
- data/lib/aspera/web_auth/server.rb +81 -0
- data.tar.gz.sig +0 -0
- metadata +39 -7
- metadata.gz.sig +0 -0
- data/lib/aspera/colors.rb +0 -79
- data/lib/aspera/rest_call_error.rb +0 -25
- data/lib/aspera/rest_error_analyzer.rb +0 -111
- data/lib/aspera/rest_errors_aspera.rb +0 -58
- data/lib/aspera/rest_list.rb +0 -136
- data/lib/aspera/web_auth.rb +0 -211
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78279e151fbea051b783ec617b16367d7080e24a06b598c0536d16a9bcba3d84
|
|
4
|
+
data.tar.gz: b1b91372f4b4cdee17180106441b4cafcbdde0e4bcacd64350a34c30716e8fc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 742fcd0022d3738bd9f919837fe33c37bdcf45109b2ed6bdcd2049aa0a08f988384cbde42e81629b835416fd5bcd2055c4833e33dce1507f7615b4157336e76d
|
|
7
|
+
data.tar.gz: 69f0015a5995ea0397e30949c3b5f5eb0978aa632b79c87bf03fb85f94943291a77755bdacd2b036c632e6c26a8e68184b2782373879ea2a2439ca4be49e2d7c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# Changes (Release notes)
|
|
2
2
|
|
|
3
|
+
## 4.27.3
|
|
4
|
+
|
|
5
|
+
Released: 2026-09-25
|
|
6
|
+
|
|
7
|
+
### New Features
|
|
8
|
+
|
|
9
|
+
* **general**: Help and `config commands` show all positional arguments with meaningful names and their type when not plain text, e.g. `<account:Hash>`, `<account_id>`, `<path>`, `<source> <destination>`.
|
|
10
|
+
* **general**: Values of options and arguments with a schema owned by `ascli` (e.g. `ts`, `transfer`, `out`, `http_options`) are validated: the error shows the path of the invalid element and the reason. New gem dependency: `json_schemer`.
|
|
11
|
+
* **general**: Deprecation warnings, help and `config options` show the last version supporting a deprecated option and its replacement, e.g. `deprecated after 4.27.0: use --out.level`.
|
|
12
|
+
* **general**: New Windows portable package `aspera-cli-<version>-windows-amd64-portable.zip` in GitHub releases: includes Ruby, gems and `ascp`, no installation nor administrator rights needed.
|
|
13
|
+
* **general**: New options `--out.colors` and `--out.utf8` to enable or disable ANSI colors and Unicode characters in terminal output, instead of auto-detection.
|
|
14
|
+
* `config`: `completion bash|zsh|fish` displays the completion script of the shell, included in the gem: activate with `eval "$(ascli config completion bash)"` (see manual).
|
|
15
|
+
* `config`: `options` shows in column `allowed` the expected type of options without a list of values when not plain text, e.g. `Hash`, `Integer`, `Hash|String`.
|
|
16
|
+
* `config`: `commands` accepts an optional plugin name and command path, and shows sub-trees provided by another plugin (e.g. `aoc files`) as a reference unless option `expand_mounts` is `yes`.
|
|
17
|
+
* `aoc`: `automation` covers the whole Automation API: new `workflows update_state|cancel_instances|delete_instances|permissions`, `instances cancel`, `steps`, `actions`.
|
|
18
|
+
* `console`: New commands `transfer current submit`, `transfer smart pause`, `transfer queue <queue_id> list|move_forwards|move_back`, `endpoint list`, `ssh_key list`, `admin email_server_update|nodeapi_credentials_update`. `health` also checks `health/up`. Help shows request body schemas.
|
|
19
|
+
* `orchestrator`: `workflows start <workflow_id> [<parameters>] [<execution>]` takes an optional `Hash` argument `execution` (`synchronous`, `step`, `variable`).
|
|
20
|
+
|
|
21
|
+
### Issues Fixed
|
|
22
|
+
|
|
23
|
+
* `aoc`, `ats`, `cos`, `node`, `faspex5`, `shares`: Help, shell completion and `config commands` now show all positional arguments and all sub-commands of commands executed on a node (e.g. `aoc files permission <path> list`).
|
|
24
|
+
* `aoc`: `automation` commands were failing or misbehaving (`workflows list`, `workflows action`, `instances`).
|
|
25
|
+
* `aoc`: `admin node do <id> transfer` and `admin workspace shared_folder <id> node <id> transfer` were always failing: they now take the same arguments as `files transfer`.
|
|
26
|
+
* `aoc`: `user contacts show|create|modify|delete` were failing.
|
|
27
|
+
* `aoc`: `short_link create|modify` were ignoring the provided `password` and `access_levels`.
|
|
28
|
+
* `faspex5`: `admin account show` was failing, `admin file_processing next` was not available.
|
|
29
|
+
* `shares`: `files spec|transport` and `admin user|group all|local show|modify|delete <id>` were failing.
|
|
30
|
+
* `mcp`: Secrets (e.g. from `config preset show`) are now hidden in tool results.
|
|
31
|
+
* `node`: `telemetry` with `interval` `0` was rejected instead of sending a single measure.
|
|
32
|
+
* `config`: Option `sdk_folder` with value `product:<name>` was taken as a folder path.
|
|
33
|
+
* `config`: `transferd install` was failing when the download server sends a `Content-Disposition` header.
|
|
34
|
+
* `config`: On a new configuration, `preset update|set|ask` with a password, and `preset show|get|unset|delete GLOBAL`, declared a global preset without creating it: all following commands were failing. `preset delete` also removes default declarations referring to the deleted preset.
|
|
35
|
+
* `config`: `options` returned empty rows with option `fields` or `select`.
|
|
36
|
+
* **general**: Temporary files (e.g. `ascp` file list) could be deleted before use, causing random transfer failures: `failed to open input file list` (since 4.27.1).
|
|
37
|
+
* **general**: Option `cert_stores` was adding to the system default locations instead of replacing them, as documented (use `DEF` to include the default).
|
|
38
|
+
* **general**: Dot-path options: `--log.secrets=yes` was failing, indexes on an `Array` option were duplicating values, `--show-config` was showing internal values for some options.
|
|
39
|
+
* **general**: Help was failing when a schema enum contains `null`, `--query=help` was missing parameters defined by `$ref`.
|
|
40
|
+
* **general**: Log format `caller` showed `???` with Ruby < 3.4.
|
|
41
|
+
* **general**: The error for a missing default preset now suggests `config preset initialize` instead of obsolete commands.
|
|
42
|
+
|
|
43
|
+
### Breaking Changes
|
|
44
|
+
|
|
45
|
+
* **general**: In dot-path values (e.g. `--ts.x=yes`, `config preset set`), `yes` and `no` are converted to `Boolean`: use `@json:"yes"` to get a `String`. In a structured value, `out.table.pivot` is `false`, `true` or `single`.
|
|
46
|
+
* `preview`: Renamed option `mimemagic` to `detect_mime`.
|
|
47
|
+
* `server`: `ls|rm|mkdir|du|md5sum|mv|cp` require at least one path, `df|info` take no argument. `mv|cp` take `<source> <destination>` pairs, or only sources with option `to_folder`.
|
|
48
|
+
* `console`: `transfer current change_rate|change_policy` require a `<data>` argument instead of option `query`. `transfer current move_forwards|move_back` moved to `transfer queue <queue_id> move_forwards|move_back <transfer_id>`.
|
|
49
|
+
* `aoc`: `automation workflows action show` replaced by `automation actions show`, `automation instances modify` replaced by `automation instances cancel`.
|
|
50
|
+
* `orchestrator`: Options `synchronous` and `result` are deprecated, use argument `execution` of `workflows start`.
|
|
51
|
+
* `config`: `completion bash <words>` renamed `completion words <words>`: `completion bash` now displays the completion script. Scripts previously downloaded from folder `etc/` shall be replaced (see manual).
|
|
52
|
+
|
|
53
|
+
## 4.27.2
|
|
54
|
+
|
|
55
|
+
Released: 2026-09-18
|
|
56
|
+
|
|
57
|
+
### New Features
|
|
58
|
+
|
|
59
|
+
* `aoc`: Added `admin node update_status` to tell AoC to scan the node and get a new status.
|
|
60
|
+
* **Windows**: Zip installer supports per-user or global installation.
|
|
61
|
+
* **general**: Harden single file executable generation with `ocran`.
|
|
62
|
+
|
|
63
|
+
### Issues Fixed
|
|
64
|
+
|
|
65
|
+
* `direct`: Fixed #263: Boolean transfer spec parameter `preserve_times` was incorrectly generating ascp option: `-p true`. Leading to error message: `no remote host specified`. Now it correctly generates `-p`.
|
|
66
|
+
|
|
67
|
+
### Breaking Changes
|
|
68
|
+
|
|
3
69
|
## 4.27.1
|
|
4
70
|
|
|
5
71
|
Released: 2026-09-16
|
|
@@ -111,7 +177,7 @@ Released: 2026-05-28
|
|
|
111
177
|
### Issues Fixed
|
|
112
178
|
|
|
113
179
|
* `format`: In `table` format with option `flat_hash=yes`, fixed that some parameters were not shown. Moreover, (Node API: /info), if an array of hash with name/value keys is returned with one extra key, still apply simplification.
|
|
114
|
-
* **global**: Fixed #254.
|
|
180
|
+
* **global**: Fixed #254: Security for SDK installation.
|
|
115
181
|
|
|
116
182
|
### Breaking Changes
|
|
117
183
|
|
data/bin/ascli
CHANGED
|
@@ -11,6 +11,8 @@ Encoding.default_internal = Encoding::UTF_8
|
|
|
11
11
|
Encoding.default_external = Encoding::UTF_8
|
|
12
12
|
$VERBOSE = old_verbose
|
|
13
13
|
|
|
14
|
+
# start coverage (if enabled) before any library is loaded
|
|
15
|
+
require 'aspera/coverage'
|
|
14
16
|
require 'aspera/log'
|
|
15
17
|
require 'aspera/cli/info'
|
|
16
18
|
|
|
@@ -29,7 +31,6 @@ rescue => e
|
|
|
29
31
|
Process.exit(1)
|
|
30
32
|
end
|
|
31
33
|
|
|
32
|
-
require 'aspera/coverage'
|
|
33
34
|
require 'aspera/environment'
|
|
34
35
|
require 'aspera/cli/runner'
|
|
35
36
|
Aspera::Environment.instance.fix_home
|