6.10.4 • Published 3 years ago

nest-console v6.10.4

Weekly downloads
82
License
-
Repository
-
Last release
3 years ago

nest-console

The nest-console module eases the creation of beautiful and testable command line interfaces for applications base on nestjs framework.

installation

yarn add nest-console

or

npm install nest-console --save

write a console class

import { Console, Argument, Option, Logger, Command } from 'nest-console' 

@Console('hello')
export class HelloCommand {
    @Command('test')
    test(
        @Argument('arg1', 'The first argument') arg1: string,
        @Argument('arg2', 'The second argument') arg2: string,
        @Option('opt1', 'The first option') opt1: string,
        logger: Logger
    ) {
        logger.info({
            arg1,
            arg2,
            opt1
        })
    }
}
6.10.4

3 years ago

6.10.2

3 years ago

6.10.3

3 years ago

6.10.1

3 years ago

6.7.3

5 years ago

5.7.5

5 years ago

6.7.2

5 years ago

5.7.4

5 years ago

5.7.3

5 years ago

5.7.2

5 years ago

5.7.1

5 years ago

5.7.0

5 years ago