java.lang.Object
io.hotmoka.cli.internal.AbstractCLIImpl
io.hotmoka.cli.AbstractCLI
io.hotmoka.moka.Moka
public class Moka
extends io.hotmoka.cli.AbstractCLI
A command-line interface for Hotmoka.
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.hotmoka.moka/io.hotmoka.moka.Moka
-
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 StringaccountsCreate(String args) Runs themoka accounts createcommand with the given arguments.static StringaccountsRotate(String args) Runs themoka accounts rotatecommand with the given arguments.static StringaccountsSend(String args) Runs themoka accounts sendcommand with the given arguments.static StringaccountsShow(String args) Runs themoka accounts showcommand with the given arguments.static StringjarsInstall(String args) Runs themoka jars installcommand with the given arguments.static StringjarsInstrument(String args) Runs themoka jars instrumentcommand with the given arguments.static StringjarsVerify(String args) Runs themoka jars verifycommand with the given arguments.static StringRuns themoka keys bindcommand with the given arguments.static StringkeysCreate(String args) Runs themoka keys createcommand with the given arguments.static StringkeysExport(String args) Runs themoka keys exportcommand with the given arguments.static StringkeysImport(String args) Runs themoka keys importcommand with the given arguments.static StringRuns themoka keys showcommand with the given arguments.static voidEntry point from the shell.static StringnodesFaucet(String args) Runs themoka nodes faucetcommand with the given arguments.static StringnodesManifestAddress(String args) Runs themoka nodes manifest addresscommand with the given arguments.static StringnodesManifestShow(String args) Runs themoka nodes manifest showcommand with the given arguments.static StringnodesTakamakaAddress(String args) Runs themoka nodes takamaka addresscommand with the given arguments.static StringRuns themoka nodes tendermint validators buycommand with the given arguments.static StringRuns themoka nodes tendermint validators createcommand with the given arguments.static StringRuns themoka nodes tendermint validators keycommand with the given arguments.static StringRuns themoka nodes tendermint validators sellcommand with the given arguments.static StringobjectsCall(String args) Runs themoka objects callcommand with the given arguments.static StringobjectsCreate(String args) Runs themoka objects createcommand with the given arguments.static StringobjectsShow(String args) Runs themoka objects showcommand with the given arguments.static StringtransactionsShow(String args) Runs themoka transactions showcommand with the given arguments.Methods inherited from class io.hotmoka.cli.internal.AbstractCLIImpl
loadLoggingConfig, main
-
Method Details
-
main
Entry point from the shell. At its end, the status message returned from the tool is returned to the shell.- Parameters:
args- the command-line arguments provided to this tool
-
accountsCreate
Runs themoka accounts createcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
accountsRotate
Runs themoka accounts rotatecommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
accountsSend
Runs themoka accounts sendcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
accountsShow
Runs themoka accounts showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysBind
Runs themoka keys bindcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysCreate
Runs themoka keys createcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysExport
Runs themoka keys exportcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysImport
Runs themoka keys importcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
keysShow
Runs themoka keys showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
jarsVerify
Runs themoka jars verifycommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
jarsInstrument
Runs themoka jars instrumentcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
jarsInstall
Runs themoka jars installcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesFaucet
Runs themoka nodes faucetcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesTakamakaAddress
Runs themoka nodes takamaka addresscommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesManifestAddress
Runs themoka nodes manifest addresscommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesManifestShow
Runs themoka nodes manifest showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesTendermintValidatorsCreate
Runs themoka nodes tendermint validators createcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesTendermintValidatorsKey
Runs themoka nodes tendermint validators keycommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesTendermintValidatorsBuy
Runs themoka nodes tendermint validators buycommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
nodesTendermintValidatorsSell
Runs themoka nodes tendermint validators sellcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
objectsCall
Runs themoka objects callcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
objectsCreate
Runs themoka objects createcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
objectsShow
Runs themoka objects showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-
transactionsShow
Runs themoka transactions showcommand with the given arguments.- Parameters:
args- the arguments- Returns:
- what the moka tool has written into the standard output
- Throws:
IOException- if the construction of the return value failed
-