diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-11-21 18:04:20 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-11-21 18:04:20 -0500 |
| commit | 3ddd062d60d621971af59b480ba70e8bf9e705f1 (patch) | |
| tree | 8d24f91e4f695a526777b5fe75fe268669b8c9a6 /dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java | |
| parent | 2afb54eecd8e8b5d663a05131c07c6b8d15e65ba (diff) | |
Rudimentary CLI for new die implementation
Diffstat (limited to 'dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java')
| -rw-r--r-- | dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java b/dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java new file mode 100644 index 0000000..705745e --- /dev/null +++ b/dice/src/example/java/bjc/dicelang/neodice/commands/HelpCommand.java @@ -0,0 +1,26 @@ +package bjc.dicelang.neodice.commands; + +import static bjc.dicelang.neodice.statements.VoidStatementValue.*; + +import java.util.*; + +import bjc.dicelang.neodice.*; +import bjc.dicelang.neodice.statements.*; + +public class HelpCommand implements Command { + @Override + public StatementValue execute(Iterator<String> words, DieBoxCLI state) { + state.output.println("help has not yet been implemented. TODO"); + return VOID_INST; + } + + @Override + public String shortHelp() { + return "prints out help for commands"; + } + + @Override + public String longHelp() { + return "Invoke the help system. Unfortunately, not yet implemented"; + } +}
\ No newline at end of file |
