Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebdaConsole

Hierarchy

  • WebdaConsole

Properties

app: Application
debuggerStatus: DebuggerStatus = DebuggerStatus.Stopped
extensions: object

Type declaration

logger: Logger
onSIGINT: function = undefined

Type declaration

serverProcess: ChildProcess
terminal: WebdaTerminal
tscCompiler: ChildProcess

Methods

  • bold(str: string): string
  • config(argv: yargs.Arguments): Promise<number>
  • If deployment in argument: display or export the configuration Otherwise launch the configuration UI

    Parameters

    • argv: yargs.Arguments

    Returns Promise<number>

  • debug(argv: yargs.Arguments): Promise<unknown>
  • Launch debug on application

    Compiling application as it is modified Relaunching the serve command on any new modification

    Parameters

    • argv: yargs.Arguments

    Returns Promise<unknown>

  • deploy(argv: yargs.Arguments): Promise<number>
  • fakeTerm(): Promise<void>
  • generateOpenAPI(argv: yargs.Arguments): Promise<void>
  • Generate the OpenAPI definition in a file

    If filename can end with .yml or .json to select the format

    Parameters

    • argv: yargs.Arguments

    Returns Promise<void>

  • generateRandomString(length?: number): Promise<string>
  • generateSessionSecret(): Promise<void>
  • getVersion(): any
  • handleCommand(args: any, versions: any, output?: WorkerOutput): Promise<number>
  • Main command switch

    Parse arguments Init logger Create Webda Application Run the command or display help

    Parameters

    • args: any
    • versions: any
    • Default value output: WorkerOutput = undefined

    Returns Promise<number>

  • handleCommandInternal(args: any, versions: any, output?: WorkerOutput): Promise<number>
  • help(commands?: string[]): void
  • init(argv: yargs.Arguments, generatorName?: string): Promise<void>
  • initLogger(argv: yargs.Arguments): Promise<void>
  • loadExtensions(appPath: any): number
  • migrateConfig(argv: yargs.Arguments): Promise<number>
  • If deployment in argument: display or export the configuration Otherwise launch the configuration UI

    Parameters

    • argv: yargs.Arguments

    Returns Promise<number>

  • output(...args: any[]): void
  • parser(args: any): yargs.Arguments
  • serve(argv: any): Promise<unknown>
  • serviceConfig(argv: any): Promise<number>
  • stopDebugger(): Promise<void>
  • typescriptWatch(stream: Transform): Promise<void>
  • worker(argv: yargs.Arguments): Promise<void | -1>

Generated using TypeDoc