Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenerateCommand

Hierarchy

Index

Constructors

constructor

Properties

env

env: any

logger

logger: LoggerInstance

options

Static APP_COMPONENT

APP_COMPONENT: string = "app"

Static AVAILABLE_COMPOENENTS

AVAILABLE_COMPOENENTS: string[] = [GenerateCommand.APP_COMPONENT,"controller","service","job","model","migration"]

Methods

getDistributionPath

  • getDistributionPath(): Promise<string>

getEntrypoint

  • getEntrypoint(__namedParameters: object): Promise<string>

Protected load

  • load(relativePath: string, options?: ServerOptions): Promise<Server>
  • Loads a new module from its relative path to cwd and initialize its instance.

    Parameters

    • relativePath: string
    • Optional options: ServerOptions

    Returns Promise<Server>

onProgram

  • onProgram(yargs: Argv): Promise<any>

run

  • run(__namedParameters: object): Promise<void>

Object literals

command

command: object

description

description: string = "Generates a new TS Framework application or component."

syntax

syntax: string = "new <component> [name]"

builder

  • builder(yargs: any): void

Generated using TypeDoc