public class Commands extends Object
Constructor | Description |
---|---|
Commands() |
Modifier and Type | Method | Description |
---|---|---|
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) |
public static void tmux(Terminal terminal, PrintStream out, PrintStream err, Supplier<Object> getter, Consumer<Object> setter, Consumer<Terminal> runner, String[] argv) throws Exception
Exception
public static void nano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv) throws Exception
Exception
public static void nano(Terminal terminal, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) throws Exception
Exception
public static void less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, String[] argv) throws Exception
Exception
public static void less(Terminal terminal, InputStream in, PrintStream out, PrintStream err, Path currentDir, String[] argv, ConfigurationPath configPath) throws Exception
Exception
protected static List<Path> findFiles(Path root, String files) throws IOException
IOException
public static void history(LineReader reader, PrintStream out, PrintStream err, Path currentDir, String[] argv) throws Exception
Exception
public static void complete(LineReader reader, PrintStream out, PrintStream err, Map<String,List<Completers.CompletionData>> completions, String[] argv) throws Options.HelpException
Options.HelpException
public static void widget(LineReader reader, PrintStream out, PrintStream err, Function<String,Widget> widgetCreator, String[] argv) throws Exception
Exception
public static void keymap(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException
Options.HelpException
public static void setopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException
Options.HelpException
public static void unsetopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException
Options.HelpException
public static void setvar(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) throws Options.HelpException
Options.HelpException
Copyright © 2020. All rights reserved.