2021-06-01 20:59:40 -05:00
|
|
|
import {Singleton, Inject} from '../../di'
|
|
|
|
|
import {CommandLine} from '../../cli'
|
2021-06-02 22:36:25 -05:00
|
|
|
import {templateForm} from '../templates/form'
|
|
|
|
|
import {Unit} from '../../lifecycle/Unit'
|
|
|
|
|
import {Logging} from '../../service/Logging'
|
2021-06-01 20:59:40 -05:00
|
|
|
|
|
|
|
|
@Singleton()
|
|
|
|
|
export class Forms extends Unit {
|
|
|
|
|
@Inject()
|
|
|
|
|
protected readonly cli!: CommandLine
|
|
|
|
|
|
|
|
|
|
@Inject()
|
|
|
|
|
protected readonly logging!: Logging
|
|
|
|
|
|
|
|
|
|
public async up(): Promise<void> {
|
2021-06-02 22:36:25 -05:00
|
|
|
this.cli.registerTemplate(templateForm)
|
2021-06-01 20:59:40 -05:00
|
|
|
}
|
|
|
|
|
}
|