Class BaseStartCommandAbstract

Hierarchy

  • default
    • BaseStartCommand

Constructors

  • Parameters

    • argv: string[]
    • config: Config

    Returns BaseStartCommand

Properties

argv: string[]
config: Config
debug: ((...args: any[]) => void)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

id: undefined | string
_base: string
_enableJsonFlag: boolean
_flags: FlagInput<{
    [flag: string]: any;
}>

A hash of flags for the command

_globalFlags: FlagInput<{
    [flag: string]: any;
}>
aliases: string[]

An array of aliases for this command.

args?: ArgInput

An order-dependent array of arguments for the command

deprecateAliases?: boolean

Emit deprecation warning when a command alias is used

deprecationOptions?: Deprecation
description: string = 'Start Blockchain Node.'
examples: string[] = ...
flags: {
    api-host: OptionFlag<undefined | string>;
    api-http: BooleanFlag<boolean>;
    api-ipc: BooleanFlag<boolean>;
    api-port: OptionFlag<undefined | number>;
    api-ws: BooleanFlag<boolean>;
    config: OptionFlag<undefined | string>;
    data-path: OptionFlag<undefined | string>;
    log: OptionFlag<undefined | string>;
    network: OptionFlag<string>;
    overwrite-config: BooleanFlag<boolean>;
    port: OptionFlag<undefined | number>;
    seed-peers: OptionFlag<undefined | string>;
} = ...

Type declaration

  • api-host: OptionFlag<undefined | string>
  • api-http: BooleanFlag<boolean>
  • api-ipc: BooleanFlag<boolean>
  • api-port: OptionFlag<undefined | number>
  • api-ws: BooleanFlag<boolean>
  • config: OptionFlag<undefined | string>
  • data-path: OptionFlag<undefined | string>
  • log: OptionFlag<undefined | string>
  • network: OptionFlag<string>
  • overwrite-config: BooleanFlag<boolean>
  • port: OptionFlag<undefined | number>
  • seed-peers: OptionFlag<undefined | string>
help: undefined | string
hidden: boolean

Hide the command from help

id: string

A command ID, used mostly in error or verbose reporting.

parse: boolean
parserOptions: {}

Type declaration

    plugin: undefined | Plugin
    run: ((argv?: string[], config?: LoadOptions) => PromiseLike<any>)

    Type declaration

      • (argv?: string[], config?: LoadOptions): PromiseLike<any>
      • instantiate and run the command

        Parameters

        • Optional argv: string[]

          argv

        • Optional config: LoadOptions

        Returns PromiseLike<any>

    state?: string

    Mark the command as a given state (e.g. beta or deprecated) in help

    strict: boolean

    When set to false, allows a variable amount of arguments

    summary?: string

    The tweet-sized description for your class, used in a parent-commands sub-command listing and as the header for the command help.

    usage: undefined | string | string[]

    An override string (or strings) for the default usage documentation.

    Accessors

    • get ctor(): typeof default
    • Returns typeof default

    • get enableJsonFlag(): boolean
    • Returns boolean

    • set enableJsonFlag(value: boolean): void
    • Parameters

      • value: boolean

      Returns void

    • get globalFlags(): FlagInput<{
          [flag: string]: any;
      }>
    • Returns FlagInput<{
          [flag: string]: any;
      }>

    • set globalFlags(flags: FlagInput<{
          [flag: string]: any;
      }>): void
    • Parameters

      • flags: FlagInput<{
            [flag: string]: any;
        }>

      Returns void

    Methods

    • Type Parameters

      • T

      Returns Promise<undefined | T>

    • Parameters

      • err: CommandError

      Returns Promise<any>

    • Parameters

      • input: string | Error
      • options: {
            code?: string;
            exit: false;
        } & PrettyPrintableError

      Returns void

    • Parameters

      • input: string | Error
      • Optional options: {
            code?: string;
            exit?: number;
        } & PrettyPrintableError

      Returns never

    • Parameters

      • Optional code: number

      Returns void

    • Parameters

      • _: undefined | Error

      Returns Promise<any>

    • Returns Promise<any>

    • Returns boolean

    • Parameters

      • Optional message: string
      • Rest ...args: any[]

      Returns void

    • Parameters

      • Optional message: string
      • Rest ...args: any[]

      Returns void

    • Type Parameters

      • F extends FlagOutput

      • G extends FlagOutput

      • A extends {
            [name: string]: any;
        }

      Parameters

      • Optional options: Input<F, G>
      • Optional argv: string[]

      Returns Promise<ParserOutput<F, G, A>>

    • Parameters

      • err: unknown

      Returns any

    • Parameters

      • result: unknown

      Returns any

    • Parameters

      • input: string | Error

      Returns string | Error

    • Returns void

    • Parameters

      • flags: Record<string, unknown>

      Returns void

    Generated using TypeDoc