Module io.jooby.cli
Package io.jooby.cli

Class Cli

All Implemented Interfaces:
Runnable

public class Cli extends Cmd
Application console.

Usage:


 jooby> --help
 Usage: jooby [-hV] [COMMAND]
   -h, --help      Show this help message and exit.
   -V, --version   Print version information and exit.
 Commands:
   create  Creates a new application
   exit    Exit console
 
Since:
2.0.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.google.gson.Gson
    JSON parser.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cli()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Start a jooby console or execute given arguments and exits.
    void
    Run a command.

    Methods inherited from class io.jooby.cli.Cmd

    run, setContext

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • gson

      public static final com.google.gson.Gson gson
      JSON parser.
  • Constructor Details

    • Cli

      public Cli()
  • Method Details

    • run

      public void run(@NonNull CliContext ctx)
      Description copied from class: Cmd
      Run a command.
      Specified by:
      run in class Cmd
      Parameters:
      ctx - Command context.
    • main

      public static void main(String[] args) throws IOException
      Start a jooby console or execute given arguments and exits.
      Parameters:
      args - Command line arguments.
      Throws:
      IOException - If something goes wrong.