Commit be353a7
authored
⚗️ Add bsdtar-compatible
* feat(cli): Add bsdtar-compatible `-b` and `--block-size` options to stdio
This commit introduces the `-b` and `--block-size` command-line options
to the `pna experimental stdio` command for improved compatibility with
bsdtar.
These options are for interface compatibility only and are no-ops. They
do not affect the runtime behavior of the command. When used, a warning
is logged to inform the user that the option is ignored.
- Added `block_size: Option<String>` to the `StdioCommand` struct.
- Implemented a warning in `run_stdio` when the option is present.
- Added integration tests to verify that both `-b` and `--block-size` are
accepted and trigger the warning.
* feat(cli): Add bsdtar-compatible `-b` and `--block-size` options to stdio
This commit introduces the `-b` and `--block-size` command-line options
to the `pna experimental stdio` command for improved compatibility with
bsdtar.
These options are for interface compatibility only and are no-ops. They
do not affect the runtime behavior of the command. When used, a warning
is logged to inform the user that the option is ignored.
- Added `block_size: Option<usize>` to the `StdioCommand` struct.
- Implemented a warning in `run_stdio` when the option is present.
- Added integration tests to verify that both `-b` and `--block-size` are
accepted and trigger the warning.
- Hid the option from the help output as it's for compatibility only.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>--block-size option to stdio command (#2566)1 parent 6ba0b28 commit be353a7
3 files changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
490 | 497 | | |
491 | 498 | | |
492 | 499 | | |
| |||
525 | 532 | | |
526 | 533 | | |
527 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
528 | 540 | | |
529 | 541 | | |
530 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments