@moostjs/event-cli 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/index.cjs +2799 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.mjs +2794 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TMoostAdapter } from 'moost';
|
|
2
|
+
import { TMoostAdapterOptions } from 'moost';
|
|
3
|
+
import { TWooksCliOptions } from '@wooksjs/event-cli';
|
|
4
|
+
import { WooksCli } from '@wooksjs/event-cli';
|
|
5
|
+
|
|
6
|
+
export declare function Cli(path?: string): MethodDecorator;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Get Cli Flag
|
|
10
|
+
* @decorator
|
|
11
|
+
* @param name - flag name
|
|
12
|
+
* @paramType string
|
|
13
|
+
*/
|
|
14
|
+
export declare function Flag(name: string): ParameterDecorator;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Get Cli Flags
|
|
18
|
+
* @decorator
|
|
19
|
+
* @paramType object
|
|
20
|
+
*/
|
|
21
|
+
export declare function Flags(): ParameterDecorator;
|
|
22
|
+
|
|
23
|
+
export declare class MoostCli implements TMoostAdapter<TCliHandlerMeta> {
|
|
24
|
+
protected cliApp: WooksCli;
|
|
25
|
+
constructor(cliApp?: WooksCli | TWooksCliOptions);
|
|
26
|
+
onInit(): void;
|
|
27
|
+
bindHandler<T extends object = object>(opts: TMoostAdapterOptions<TCliHandlerMeta, T>): void | Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare interface TCliHandlerMeta {
|
|
31
|
+
path: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { }
|