You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
444 B

import {ORMUser, Singleton, Unit, CommandLine, Inject} from '@extollo/lib'
import {User} from './models/User.model'
import {StandupDirective} from './cli/directive/StandupDirective'
@Singleton()
export class AppUnit extends Unit {
@Inject()
protected readonly cli!: CommandLine
async up(): Promise<void> {
this.container().registerStaticOverride(ORMUser, User)
this.cli.registerDirective(StandupDirective)
}
}