Package org.jline.builtins
Class Commands
java.lang.Object
org.jline.builtins.Commands
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcolors(Terminal terminal, PrintStream out, String[] argv) private static AttributedStylecompileStyle(String reference, String colorDef) static voidcomplete(LineReader reader, PrintStream out, PrintStream err, Map<String, List<Completers.CompletionData>> completions, String[] argv) private static voiddisplayValue(StringBuilder sb, Object value) private static voiddoSetOpts(LineReader reader, PrintStream out, PrintStream err, List<String> options, boolean match, boolean set) static voidhighlighter(LineReader lineReader, Terminal terminal, PrintStream out, PrintStream err, String[] argv, ConfigurationPath configPath) static voidhistory(LineReader reader, PrintStream out, PrintStream err, Path currentDir, String[] argv) private static inthistoryId(int id, int minId, int maxId) static voidkeymap(LineReader reader, PrintStream out, PrintStream err, String[] argv) static voidless(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv) static voidless(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv, ConfigurationPath configPath) static voidnano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv) static voidnano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) private static StringreplaceFileName(Path path, String name) private static intretrieveHistoryId(History history, String s) static voidsetopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) static voidsetvar(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) private static voidswitchTheme(PrintStream err, Path config, String theme) static voidtmux(Terminal terminal, PrintStream out, PrintStream err, Supplier<Object> getter, Consumer<Object> setter, Consumer<Terminal> runner, String[] argv) static voidunsetopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) static voidwidget(LineReader reader, PrintStream out, PrintStream err, Function<String, Widget> widgetCreator, String[] argv)
-
Constructor Details
-
Commands
public Commands()
-
-
Method Details
-
tmux
public static void tmux(Terminal terminal, PrintStream out, PrintStream err, Supplier<Object> getter, Consumer<Object> setter, Consumer<Terminal> runner, String[] argv) throws Exception - Throws:
Exception
-
nano
public static void nano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv) throws Exception - Throws:
Exception
-
nano
public static void nano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) throws Exception - Throws:
Exception
-
less
public static void less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv) throws Exception - Throws:
Exception
-
less
public static void less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv, ConfigurationPath configPath) throws Exception - Throws:
Exception
-
findFiles
- Throws:
IOException
-
history
public static void history(LineReader reader, PrintStream out, PrintStream err, Path currentDir, String[] argv) throws Exception - Throws:
Exception
-
historyId
private static int historyId(int id, int minId, int maxId) -
retrieveHistoryId
- Throws:
IllegalArgumentException
-
complete
public static void complete(LineReader reader, PrintStream out, PrintStream err, Map<String, List<Completers.CompletionData>> completions, String[] argv) throws Options.HelpException- Throws:
Options.HelpException
-
widget
public static void widget(LineReader reader, PrintStream out, PrintStream err, Function<String, Widget> widgetCreator, String[] argv) throws Exception- Throws:
Exception
-
keymap
public static void keymap(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException - Throws:
Options.HelpException
-
setopt
public static void setopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException - Throws:
Options.HelpException
-
unsetopt
public static void unsetopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException - Throws:
Options.HelpException
-
doSetOpts
private static void doSetOpts(LineReader reader, PrintStream out, PrintStream err, List<String> options, boolean match, boolean set) -
displayValue
-
setvar
public static void setvar(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException - Throws:
Options.HelpException
-
colors
public static void colors(Terminal terminal, PrintStream out, String[] argv) throws Options.HelpException, IOException - Throws:
Options.HelpExceptionIOException
-
highlighter
public static void highlighter(LineReader lineReader, Terminal terminal, PrintStream out, PrintStream err, String[] argv, ConfigurationPath configPath) throws Options.HelpException - Throws:
Options.HelpException
-
switchTheme
-
replaceFileName
-
compileStyle
-