matrix-appservice-bridge
    Preparing search index...

    Class Cli<ConfigType>

    Type Parameters

    • ConfigType extends Record<string, unknown>
    Index

    Constructors

    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 null | CliArgs

      The parsed arguments

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

      Returns null | ConfigType

      The config

    • 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 string

      The path to the registration file.

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

      Parameters

      • Optionalargs: CliArgs

      Returns void