Package org.jline.builtins
Class Commands
java.lang.Object
org.jline.builtins.Commands
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
colors
(Terminal terminal, PrintStream out, String[] argv) private static AttributedStyle
compileStyle
(String reference, String colorDef) static void
complete
(LineReader reader, PrintStream out, PrintStream err, Map<String, List<Completers.CompletionData>> completions, String[] argv) private static void
displayValue
(StringBuilder sb, Object value) private static void
doSetOpts
(LineReader reader, PrintStream out, PrintStream err, List<String> options, boolean match, boolean set) 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) private static int
historyId
(int id, int minId, int maxId) 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) private static String
replaceFileName
(Path path, String name) private static int
retrieveHistoryId
(History history, String s) static void
setopt
(LineReader reader, PrintStream out, PrintStream err, String[] argv) static void
setvar
(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) private static void
switchTheme
(PrintStream err, Path config, String theme) 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
-
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.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
-
switchTheme
-
replaceFileName
-
compileStyle
-