[ https://issues.apache.org/jira/browse/HDDS-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Siyao Meng updated HDDS-13589: ------------------------------ Description: picocli has this feature that can generate autocomplete script (for tab completion, improving UX): https://picocli.info/autocomplete.html We could leverage that to generate autocomplete script for 2nd level subcommands. Then bundle that into our Docker dev cluster later in a separate task. (1st level subcommands might still need to be generate in some other way as they are defined manually [here|https://github.com/apache/ozone/blob/6dcd6f32343937de6ab6cfa6981041bb0a3bd584/hadoop-ozone/dist/src/shell/ozone/ozone#L68-L85] in ozone script) ---- Update: Looks like HDDS-12519 has already implemented the second level subcommands' autocomplete scripts. We might just need to generate first level ones. was: picocli has this feature that can generate autocomplete script (for tab completion, improving UX): https://picocli.info/autocomplete.html We could leverage that to generate autocomplete script for 2nd level subcommands. Then bundle that into our Docker dev cluster later in a separate task. (1st level subcommands might still need to be generate in some other way as they are defined manually [here|https://github.com/apache/ozone/blob/6dcd6f32343937de6ab6cfa6981041bb0a3bd584/hadoop-ozone/dist/src/shell/ozone/ozone#L68-L85] in ozone script) > Generate AutoComplete script for Ozone CLI > ------------------------------------------ > > Key: HDDS-13589 > URL: https://issues.apache.org/jira/browse/HDDS-13589 > Project: Apache Ozone > Issue Type: Task > Reporter: Siyao Meng > Priority: Major > > picocli has this feature that can generate autocomplete script (for tab > completion, improving UX): > https://picocli.info/autocomplete.html > We could leverage that to generate autocomplete script for 2nd level > subcommands. Then bundle that into our Docker dev cluster later in a separate > task. > (1st level subcommands might still need to be generate in some other way as > they are defined manually > [here|https://github.com/apache/ozone/blob/6dcd6f32343937de6ab6cfa6981041bb0a3bd584/hadoop-ozone/dist/src/shell/ozone/ozone#L68-L85] > in ozone script) > ---- > Update: Looks like HDDS-12519 has already implemented the second level > subcommands' autocomplete scripts. We might just need to generate first level > ones. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org