Class MokamintMiner

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
  • Method Details

    • main

      public static void main(String[] args)
      Entry point from the shell.
      Parameters:
      args - the command-line arguments provided to this tool
    • keysCreate

      public static String keysCreate(String args) throws IOException
      Runs the keys create command 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

      public static String keysShow(String args) throws IOException
      Runs the keys show command 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

      public static String keysExport(String args) throws IOException
      Runs the keys export command 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

      public static String keysImport(String args) throws IOException
      Runs the keys import command 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