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.
19 lines
582 B
19 lines
582 B
4 years ago
|
import LifecycleUnit from '../../lib/src/lifecycle/Unit.ts'
|
||
|
import {CLIService} from './service/CLI.service.ts'
|
||
|
import {Unit} from '../../lib/src/lifecycle/decorators.ts'
|
||
|
import {Logging} from '../../lib/src/service/logging/Logging.ts'
|
||
|
|
||
|
@Unit()
|
||
|
export default class CLIAppUnit extends LifecycleUnit {
|
||
|
constructor(
|
||
|
protected readonly cli: CLIService,
|
||
|
protected readonly logger: Logging,
|
||
|
) { super() }
|
||
|
|
||
|
public async up() {
|
||
|
this.logger.verbose(`Handling CLI invocation...`)
|
||
|
const args = Deno.args
|
||
|
console.log('args', {args})
|
||
|
}
|
||
|
}
|