Skip to content

Completers.FileNameCompleter() dont work in some sense #1488

@LingoJack

Description

@LingoJack

i have a cli written by java, there has a command like 'set '
is the name user input,
is executable path
i try to complete it but fail to do;
here is my code:

ArgumentCompleter addArgumentCompleter = new ArgumentCompleter(
                    new StringsCompleter(addCommands),
                    new StringsCompleter("<alias>"),
                    new Completers.FileNameCompleter(),
                    NullCompleter.INSTANCE);
            addArgumentCompleter.setStrict(false);

i want to know whether there is a way to make Completers.FileNameCompleter() work while is inputed by user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions