Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to hide -- prefix #1156

Open
alienhunter3010 opened this issue Jan 12, 2025 · 0 comments
Open

No way to hide -- prefix #1156

alienhunter3010 opened this issue Jan 12, 2025 · 0 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@alienhunter3010
Copy link

I would like to write a REPL application that works like mysql-client. Using

    @ShellMethod(value = "READ data from DB.", key={"select", "SELECT"})
    public String select(
            @ShellOption(arity = Integer.MAX_VALUE, valueProvider = TableNameValueProvider.class)
            String[] sql) {

it's easy acquire something like SELECT * FROM books. But my TableNameValueProvider class is triggered only if I write SELECT * FROM --sql [TAB] and works one time only:

> SELECT * FROM --sql books JOIN -
--help   -h

I tried also with @command / @option / @OptionValues and w/ the CommandRegistration.builder() too. But I have always the same behaviour. I think that an implicit (boolean) annotation attribute will be perfect to solve this issue.

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

1 participant