public interface Command
Command is a script to be run by Ash Shell.
You can declare your own command class by implementing this interface and
register a command instance into the shell with its command name via
Shell#register method.| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the command name.
|
void |
run(Line line)
Runs a command with the specified command line.
|
Usage |
usage()
Returns the command usage.
|
Copyright © 2014-2019 Eiichiro Uchiumi. All Rights Reserved.