Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommandUtils

Index

Constructors

Properties

helpFlag: IBooleanFlag<void> = ...
noPasswordFlag: IBooleanFlag<boolean> = ...
offlineFlag: IBooleanFlag<boolean> = ...
passwordFlag: IOptionFlag<undefined | string> = ...
passwordPromptDefaultMessage: string = ...
targetFlag: IOptionFlag<string> = ...

Methods

  • formatAccount(account: PublicAccount, wrapped?: boolean): string
  • Returns account details formatted (ready to print)

    Parameters

    • account: PublicAccount
    • wrapped: boolean = true

    Returns string

  • getLoggerFlag(...defaultLogTypes: LogType[]): IOptionFlag<string>
  • It returns the flag that can be used to tune the class of logger.

    Parameters

    • Rest ...defaultLogTypes: LogType[]

      the default logger to be used if not provided.

    Returns IOptionFlag<string>

  • getPasswordFlag(description: string): IOptionFlag<undefined | string>
  • isValidPassword(input: undefined | string): string | boolean
  • isValidPrivateKey(input: string): string | boolean
  • resolvePassword(logger: Logger, providedPassword: Password, noPassword: boolean, message: string, log: boolean): Promise<undefined | string>
  • showBanner(): void

Generated using TypeDoc