Skip to content

JLine3 autocomplete file path #762

@f-renout

Description

@f-renout

Is it possible to have an file path autocomplete using picocli in an interactive shell with JLine3 (or another component)

For example let say I've a command

@Command
public void myCommand(@Parameter File myFile){
 out.println(myFile.getAbsolutePath());
}

when I try to use picocli and JLine3 I get autocompletion for "myCommand" but I haven't any for filling the parameter path
so

>myApp myC<TAB>

complete well to

>myApp myCommand 

but for example

>myApp myCommand /etc/apa<TAB>

didn't complete to

>myApp myCommand /etc/apache2

It will be really great to b able to archive this (perhaps did I miss something wile reading the doc and samples but I didn't figure out how to obtain this result)

Just in case my OS is Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme: auto-completionAn issue or change related to auto-completiontheme: integrationAn issue or change related to integration with other frameworks, shells or operating systemstheme: shellAn issue or change related to interactive (JLine) applications

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions