Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "cli"

Index

Variables

Functions

Object literals

Variables

Const program

program: Command = new commander.Command('WideQJS')

Const version

version: any = fs.existsSync(path.join(__dirname, '../package.json')) ? JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString()).version : ''

Functions

authenticate

Const delay

  • delay(ms: number): Promise<unknown>
  • Parameters

    • ms: number

    Returns Promise<unknown>

init

  • init(country: string, language: string, stateFilePath?: undefined | string): Promise<Client>
  • Parameters

    • country: string
    • language: string
    • Optional stateFilePath: undefined | string

    Returns Promise<Client>

Const input

  • input(question: string): Promise<string>
  • Parameters

    • question: string

    Returns Promise<string>

saveState

  • saveState(stateFilePath: string, client: Client): void
  • Parameters

    • stateFilePath: string
    • client: Client

    Returns void

Object literals

Const options

options: object

country

country: string = constants.DEFAULT_COUNTRY

language

language: string = constants.DEFAULT_LANGUAGE

statePath

statePath: string = "wideq-state.json"

Generated using TypeDoc