@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.
@@ -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 { }