- java.lang.Object
-
- org.jline.builtins.Commands
-
public class Commands extends Object
-
-
Constructor Summary
Constructors Constructor Description Commands()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
protected static List<Path>
findFiles(Path root, String files)
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, String[] argv)
static void
less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, String[] 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)
-
-
-
Method Detail
-
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, String[] argv) throws Exception
- Throws:
Exception
-
less
public static void less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) throws Exception
- Throws:
Exception
-
findFiles
protected static List<Path> findFiles(Path root, String files) throws IOException
- 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
-
-