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.
16 lines
469 B
16 lines
469 B
import LifecycleUnit from '../../lib/src/lifecycle/Unit.ts'
|
|
import {CLIService} from './service/CLI.service.ts'
|
|
import {Unit} from '../../lib/src/lifecycle/decorators.ts'
|
|
import {UsageDirective} from './directive/UsageDirective.ts'
|
|
|
|
@Unit()
|
|
export default class CLIUnit extends LifecycleUnit {
|
|
constructor(
|
|
protected readonly cli: CLIService,
|
|
) { super() }
|
|
|
|
public async up() {
|
|
this.cli.register_directive(this.make(UsageDirective))
|
|
}
|
|
}
|