Class Cli<ConfigType>

Type Parameters

  • ConfigType extends Record<string, unknown>

Hierarchy

  • Cli

Constructors

  • Type Parameters

    • ConfigType extends Record<string, unknown>

    Parameters

    • opts: CliOpts<ConfigType>

      CLI options

    Returns Cli<ConfigType>

Properties

DEFAULT_FILENAME: string = "registration.yaml"
DEFAULT_WATCH_INTERVAL: number = 2500

Methods

  • Get the parsed arguments. Only set after run is called and arguments parsed.

    Returns

    The parsed arguments

    Returns null | CliArgs

  • Get the loaded and parsed bridge config. Only set after run() has been called.

    Returns

    The config

    Returns null | ConfigType

  • Get the path to the registration file. This may be different to the one supplied in the constructor if the user passed a -f flag.

    Returns

    The path to the registration file.

    Returns string

  • Run the app from the command line. Will parse sys args.

    Parameters

    • Optional args: CliArgs

    Returns void

Generated using TypeDoc