Package org.drasyl.cli.command
Class WormholeCommand
- java.lang.Object
-
- org.drasyl.cli.command.WormholeCommand
-
- All Implemented Interfaces:
Command
public class WormholeCommand extends Object
Inspired by Magic Wormhole.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
err
protected PrintStream
out
-
Constructor Summary
Constructors Constructor Description WormholeCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String[] args)
protected void
execute(org.apache.commons.cli.CommandLine cmd)
String
getDescription()
protected DrasylConfig
getDrasylConfig(org.apache.commons.cli.CommandLine cmd)
protected org.apache.commons.cli.Options
getOptions()
protected void
help(org.apache.commons.cli.CommandLine cmd)
protected void
helpTemplate(String name, String header)
protected void
helpTemplate(String name, String header, String footer)
protected void
helpTemplate(String name, String header, String footer, Map<String,String> commands)
protected Logger
log()
protected void
setLogLevel(org.apache.commons.cli.CommandLine cmd)
-
-
-
Field Detail
-
out
protected final PrintStream out
-
err
protected final PrintStream err
-
-
Method Detail
-
getDescription
public String getDescription()
-
log
protected Logger log()
-
getOptions
protected org.apache.commons.cli.Options getOptions()
-
help
protected void help(org.apache.commons.cli.CommandLine cmd)
-
execute
protected void execute(org.apache.commons.cli.CommandLine cmd)
-
helpTemplate
protected void helpTemplate(String name, String header, String footer, Map<String,String> commands)
-
setLogLevel
protected void setLogLevel(org.apache.commons.cli.CommandLine cmd)
-
getDrasylConfig
protected DrasylConfig getDrasylConfig(org.apache.commons.cli.CommandLine cmd)
-
-