Completer
Completers.DirectoriesCompleter
, Completers.FilesCompleter
public static class Completers.FileNameCompleter extends Object implements Completer
This completer tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:
Constructor | Description |
---|---|
FileNameCompleter() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
accept(Path path) |
|
void |
complete(LineReader reader,
ParsedLine commandLine,
List<Candidate> candidates) |
Populates candidates with a list of possible completions for the command line.
|
protected static String |
getDisplay(Terminal terminal,
Path p) |
|
protected String |
getSeparator(boolean useForwardSlash) |
|
protected Path |
getUserDir() |
|
protected Path |
getUserHome() |
public void complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates)
Completer
protected boolean accept(Path path)
protected Path getUserDir()
protected Path getUserHome()
protected String getSeparator(boolean useForwardSlash)
Copyright © 2020. All rights reserved.