Package com.io7m.changelog.cmdline
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()intexitCode()static voidmain(java.lang.String[] args)The main entry point.voidrun()java.lang.StringtoString()
-
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:
runin interfacejava.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:
toStringin classjava.lang.Object
-
exitCause
public java.util.Optional<java.lang.Exception> exitCause()- Returns:
- The exception that caused the exit
-