[
https://issues.apache.org/jira/browse/HDDS-13589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng resolved HDDS-13589.
-------------------------------
Assignee: Siyao Meng
Resolution: Duplicate
> 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
> Assignee: 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 1: Looks like HDDS-12519 has already implemented the second level
> subcommands' autocomplete scripts. We might just need to generate first level
> ones.
> ----
> Update 2: HDDS-12519 looks to be working just fine. Closing this one as
> duplicate.
> {code}
> bash-5.1$ source <(ozone completion bash)
> bash-5.1$ ozone
> admin debug getconf repair sh
> completion genconf ratis s3 tenant
> bash-5.1$ ozone admin
> cert datanode pipeline replicationmanager
> container namespace printTopology safemode
> containerbalancer om reconfig scm
> bash-5.1$ ozone debug
> auditparser datanode log ratislogparser version
> checknative ldb om replicas
> bash-5.1$ ozone debug checknative
> Native library checking:
> hadoop: false
> ISA-L: false hadoop native library cannot be loaded.
> OpenSSL: false
> rocks-tools: true libozone_rocksdb_tools.so
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]