Options
All
  • Public
  • Public/Protected
  • All
Menu

chuck command

Hierarchy

Implements

Index

Properties

description

description: "Print a random Chuck Norris joke. Jep it is true! Just try it 😎" = "Print a random Chuck Norris joke. Jep it is true! Just try it 😎"

A description text.

syntax

syntax: "[options]" = "[options]"

Syntax description, which is shown on help screen.

Methods

execute

Private getJoke

  • getJoke(url: string): Promise<string>
  • Parameters

    • url: string

    Returns Promise<string>

Private handleError

  • handleError(spinner: Ora, error: any): void
  • Parameters

    • spinner: Ora
    • error: any

    Returns void

showHelp

  • showHelp(): Promise<void>
  • inheritdoc

    Returns Promise<void>

Generated using TypeDoc