Class Main

java.lang.Object
com.io7m.changelog.cmdline.Main
All Implemented Interfaces:
java.lang.Runnable

public final class Main
extends java.lang.Object
implements java.lang.Runnable
Main command line entry point.
  • Method Summary

    Modifier and Type Method Description
    java.util.stream.Stream<java.lang.String> commandNames()  
    java.util.SortedMap<java.lang.String,​com.io7m.claypot.core.CLPCommandType> commands()  
    java.util.Optional<java.lang.Exception> exitCause()  
    int exitCode()  
    static void main​(java.lang.String[] args)
    The main entry point.
    void run()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • main

      public static void main​(java.lang.String[] args)
      The main entry point.
      Parameters:
      args - Command line arguments
    • exitCode

      public int exitCode()
      Returns:
      The program exit code
    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable
    • commandNames

      public java.util.stream.Stream<java.lang.String> commandNames()
      Returns:
      The names of the available commands
    • commands

      public java.util.SortedMap<java.lang.String,​com.io7m.claypot.core.CLPCommandType> commands()
      Returns:
      The available commands
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • exitCause

      public java.util.Optional<java.lang.Exception> exitCause()
      Returns:
      The exception that caused the exit