java.lang.Object
io.hotmoka.cli.internal.AbstractCLIImpl
io.hotmoka.cli.AbstractCLI
io.mokamint.miner.cli.MokamintMiner
public class MokamintMiner
extends io.hotmoka.cli.AbstractCLI
A command-line interface for working with Mokamint miners.
This class is meant to be run from the parent directory, after building the project, with this command-line:
java --module-path modules/explicit:modules/automatic --class-path "modules/unnamed/*" --module io.mokamint.miner.cli/io.mokamint.miner.cli.MokamintMiner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA provider of the version of this tool, taken from the property declaration into the POM file. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringkeysCreate(String args) Runs thekeys createcommand with the given arguments.static StringkeysExport(String args) Runs thekeys exportcommand with the given arguments.static StringkeysImport(String args) Runs thekeys importcommand with the given arguments.static StringRuns thekeys showcommand with the given arguments.static voidEntry point from the shell.Methods inherited from class io.hotmoka.cli.internal.AbstractCLIImpl
loadLoggingConfig, main
-
Method Details
-
main
Entry point from the shell.- Parameters:
args- the command-line arguments provided to this tool
-
keysCreate
Runs thekeys createcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysShow
Runs thekeys showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysExport
Runs thekeys exportcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysImport
Runs thekeys importcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-