@mojojs/core
    Preparing search index...

    Class CLI

    Command line interface class.

    Index
    • Parameters

      Returns CLI

    _app: WeakRef<App>
    _loaded: boolean | undefined = undefined
    commandPaths: string[] = ...

    Paths to search for commands.

    commands: Record<string, Command> = {}

    Registered commands.

    • Parameters

      • showAll: boolean = false

      Returns Promise<void>

    • Returns Promise<void>

    • Add a command.

      Parameters

      • name: string
      • command: Command

      Returns void

    • Detect command from environment.

      Returns string | null

    • Start command line interface.

      Parameters

      • Optionalcommand: string
      • ...args: string[]

      Returns Promise<void>