[
https://issues.apache.org/jira/browse/HDDS-13102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953268#comment-17953268
]
Ethan Rose commented on HDDS-13102:
-----------------------------------
One idea for the options:
* Support both {{--length}} and {{--count}} as aliases for compatibility
* Add a {{--start}} option for continuation support. All commands that are
truncating results should support continuation tokens, otherwise later results
cannot be read
* Use {{--all}} to show all results. Commands should batch API calls in the
background
* Add a test using reflection that all commands that use the mixin print a
message to stderr when results are truncated to indicate that only a partial
list was returned
> Create PicoCLI mixin to standardize command line list options
> -------------------------------------------------------------
>
> Key: HDDS-13102
> URL: https://issues.apache.org/jira/browse/HDDS-13102
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone CLI
> Reporter: Ethan Rose
> Priority: Major
>
> Each {{list}} subcommand in Ozone controls length differently. Some use
> {{--length/-l}}, some use {{--count/-c}}, some support passing {{-1}} to give
> all results, others have a {{--all}} flag. Some support continuation tokens,
> others do not. This Jira proposes using a PicoCLI
> [mixin|https://picocli.info/apidocs/picocli/CommandLine.Mixin.html] to
> standardize the options among all list type commands.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]