public class Help extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected CommandType |
cmd |
protected File |
export |
protected CommandRegistry |
ns |
protected Shell |
shell |
Constructor and Description |
---|
Help() |
Modifier and Type | Method and Description |
---|---|
protected jline.ANSIBuffer |
boldify(jline.ANSIBuffer buf,
String text,
boolean wiki) |
void |
exportCommands(Shell shell,
File file) |
void |
exportRegistry(Shell shell,
CommandRegistry reg,
File file) |
protected void |
formatCommandForWiki() |
protected jline.ANSIBuffer |
getCommandHelp(CommandType cmd,
boolean wiki) |
protected jline.ANSIBuffer |
header(jline.ANSIBuffer buf,
String text,
boolean wiki) |
void |
run() |
void |
showMainPage(ShellConsole console) |
protected jline.ANSIBuffer |
syntax(jline.ANSIBuffer buf,
String syntax,
boolean wiki) |
protected void |
writeCommand(CommandType cmd,
StringBuilder sb) |
protected void |
writeRegistry(CommandRegistry reg,
StringBuilder sb) |
protected CommandType cmd
protected CommandRegistry ns
public Help()
public void showMainPage(ShellConsole console)
public void exportRegistry(Shell shell, CommandRegistry reg, File file) throws Exception
Exception
public void exportCommands(Shell shell, File file) throws Exception
Exception
protected void writeRegistry(CommandRegistry reg, StringBuilder sb)
protected void writeCommand(CommandType cmd, StringBuilder sb)
protected jline.ANSIBuffer getCommandHelp(CommandType cmd, boolean wiki)
protected void formatCommandForWiki()
Copyright © 2016 Nuxeo SA. All rights reserved.