Package org.jline.builtins
Class Commands
java.lang.Object
org.jline.builtins.Commands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
colors
(Terminal terminal, PrintStream out, String[] argv) static void
complete
(LineReader reader, PrintStream out, PrintStream err, Map<String, List<Completers.CompletionData>> completions, String[] argv) static void
highlighter
(LineReader lineReader, Terminal terminal, PrintStream out, PrintStream err, String[] argv, ConfigurationPath configPath) static void
history
(LineReader reader, PrintStream out, PrintStream err, Path currentDir, String[] argv) static void
keymap
(LineReader reader, PrintStream out, PrintStream err, String[] argv) static void
less
(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv) static void
less
(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, Object[] argv, ConfigurationPath configPath) static void
nano
(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv) static void
nano
(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) static void
setopt
(LineReader reader, PrintStream out, PrintStream err, String[] argv) static void
setvar
(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) static void
tmux
(Terminal terminal, PrintStream out, PrintStream err, Supplier<Object> getter, Consumer<Object> setter, Consumer<Terminal> runner, String[] argv) static void
unsetopt
(LineReader reader, PrintStream out, PrintStream err, String[] argv) static void
widget
(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
-
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
-
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.HelpException
IOException
-
highlighter
public static void highlighter(LineReader lineReader, Terminal terminal, PrintStream out, PrintStream err, String[] argv, ConfigurationPath configPath) throws Options.HelpException - Throws:
Options.HelpException
-