Skip to content

HDDS-15354. Fix nested tab completion in ozone interactive#10359

Merged
adoroszlai merged 1 commit into
apache:masterfrom
will-sh:HDDS-15354
May 26, 2026
Merged

HDDS-15354. Fix nested tab completion in ozone interactive#10359
adoroszlai merged 1 commit into
apache:masterfrom
will-sh:HDDS-15354

Conversation

@will-sh
Copy link
Copy Markdown
Contributor

@will-sh will-sh commented May 25, 2026

What changes were proposed in this pull request?

HDDS-15354. Fix nested tab completion in ozone interactive

After HDDS-15185 introduced the top-level ozone interactive entry point (ozone-cli-interactive), users can reach nested CLIs with short names such as sh, s3, tenant, admin, and debug. Tab completion worked for those top-level tokens but failed for deeper input (for example sh vol, sh vol create).

This change adds Picocli aliases on the nested CLI root commands so the names registered by OzoneInteractiveShell match what the JLine/picocli completer uses when resolving subcommands.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15354

How was this patch tested?

Manual — ozone interactive (cluster or compose env with Ozone CLI built from this branch):
Start ozone interactive.
Tab-complete top-level: sh, s3, tenant, admin, debug.
Tab-complete nested paths, e.g. sh → vol / bucket / key, and at least one deeper level (e.g. sh vol → subcommands).
Confirm behavior matches ozone sh --interactive for nested completion where applicable.

CI - Passed

Add Picocli aliases on nested CLIs so keys used by OzoneInteractiveShell match tab-completion lookup.
@adoroszlai adoroszlai merged commit 2efe7e1 into apache:master May 26, 2026
47 checks passed
@adoroszlai
Copy link
Copy Markdown
Contributor

Thanks @will-sh for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants