import { Cli , } from 'matrix-appservice-bridge' ; import { REGISTRATION_FILE , SCHEMA_FILE , } from '../config.js' ; import { generateRegistration , } from './generate-registration.js' ; import { run , } from './run.js' ; export function createCli ( ) { const registrationPath = REGISTRATION_FILE ; const schema = SCHEMA_FILE ; const bridgeConfig = { schema , } ; const cli = new Cli ( { bridgeConfig : bridgeConfig as any , generateRegistration , registrationPath , run , } ) ; return cli ; }