@2fd/command
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -6,3 +6,3 @@ import { CommandInterface, InputInterface, OutputInterface } from './lib/interfaces'; | ||
import { IgnoreParams, NoParams, Param } from './lib/command/params'; | ||
import { FlagConstructor, BooleanFlag, HelpFlag, NullFlag } from './lib/command/flags'; | ||
export { CommandInterface, InputInterface, OutputInterface, Command, ExecutorCommand, ArgvInput, ConsoleOutput, ColorConsoleOutput, IgnoreParams, NoParams, Param, FlagConstructor, BooleanFlag, HelpFlag, NullFlag }; | ||
import { FlagConstructor, BooleanFlag, HelpFlag, NullFlag, ValueFlag, ListValueFlag, RequireFlag } from './lib/command/flags'; | ||
export { CommandInterface, InputInterface, OutputInterface, Command, ExecutorCommand, ArgvInput, ConsoleOutput, ColorConsoleOutput, IgnoreParams, NoParams, Param, FlagConstructor, BooleanFlag, HelpFlag, NullFlag, ValueFlag, ListValueFlag, RequireFlag }; |
@@ -19,1 +19,4 @@ "use strict"; | ||
exports.NullFlag = flags_1.NullFlag; | ||
exports.ValueFlag = flags_1.ValueFlag; | ||
exports.ListValueFlag = flags_1.ListValueFlag; | ||
exports.RequireFlag = flags_1.RequireFlag; |
@@ -30,5 +30,5 @@ import { InputInterface, OutputInterface, FlagInterface } from '../interfaces'; | ||
constructor(flag: FlagInterface<F>); | ||
name: string; | ||
description: string; | ||
list: string[]; | ||
readonly name: string; | ||
readonly description: string; | ||
readonly list: string[]; | ||
after(input: InputInterface<any, any>, output: OutputInterface): void; | ||
@@ -35,0 +35,0 @@ before(input: InputInterface<any, any>, output: OutputInterface): void; |
@@ -10,3 +10,3 @@ import { QuickCommandType, CommandInterface } from '../interfaces'; | ||
command(): CommandInterface<any, any>; | ||
description: string; | ||
readonly description: string; | ||
handle(input: any, output: any): void; | ||
@@ -24,4 +24,4 @@ } | ||
constructor(quick: QuickCommandType); | ||
description: string; | ||
readonly description: string; | ||
handle(input: any, output: any): void; | ||
} |
{ | ||
"name": "@2fd/command", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Modular command line tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
59383
34
1540