import 'reflect-metadata' // noinspection ES6UnusedImports import {command,argument,inject,option,optional,action,global,required,variadic} from '../src/decorators.js'; import { App } from '../src/index.js'; @command('class_command', 'The config command') export default class { app?: App; // @inject.out out: inject['out']; // @inject.in in: inject['in']; // @inject.config config: inject['config']; @option('The files', { short: 'f' }) @required files: string[]; @action() run( @argument('a number') numberValue: number, @argument('with default value') withDefaultValue: string = 'asfdsdf', @argument('the path') ...paths: string[] ) { this.app.out.dump({ numberValue, withDefaultValue, paths }); // this.out.dump({ numberValue, withDefaultValue, paths }); } }