-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.ts
85 lines (73 loc) · 2.14 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
* Stega - A comprehensive CLI framework for Deno
*
* Features:
* - Advanced command management with subcommands
* - Plugin system for extensibility
* - Internationalization support
* - Workflow automation capabilities
* - Template engine for code generation
* - Rich logging system
* - Middleware support
*
* @module
*
* @example
* ```ts
* import { Command } from "@layerdynamics/stega";
*
* const cli = new Command("mycli")
* .description("My CLI app")
* .version("1.0.0");
*
* await cli.parse();
* ```
*/
// mod.ts - Main entry point for Stega CLI Framework
// Core exports
export {CLI} from "./src/core/core.ts";
export {CommandRegistry} from "./src/command.ts";
export {Parser} from "./src/parser.ts";
export {Help} from "./src/help.ts";
export {ConfigLoader} from "./src/config.ts";
// Command system exports
export * from "./src/commands/mod.ts";
// Plugin system
export type {Plugin,PluginMetadata} from "./src/plugins/plugin.ts";
export {PluginLoader} from "./src/plugins/plugin_loader.ts";
export {PLUGIN_REGISTRY} from "./src/plugins/registry.ts";
// Middleware system
export type {MiddlewareFunction} from "./src/middleware/middleware.ts";
export {MiddlewareRegistry} from "./src/middleware/middleware.ts";
export {loggingMiddleware} from "./src/middleware/logger.ts";
// Types
export type {
Args,
BuildOptions,
CommandLifecycle,
Option,
ValidationRules,
} from "./src/types/types.ts";
// Re-export Command type
export type {Command} from "./src/command.ts";
// Error handling
export {
CommandNotFoundError,
InvalidFlagValueError,
MissingFlagError,
StegaError,
SubcommandNotFoundError,
} from "./src/error.ts";
// Utilities
export {logger,setup as setupLogger} from "./src/logger/logger.ts";
export type {ILogger} from "./src/logger/logger_interface.ts";
export {convertFlagValue,type FlagType,type FlagValue} from "./src/flag.ts";
export {I18n} from "./src/i18n.ts";
// Compiler system
export * from "./src/compiler/mod.ts";
// Prompts and Progress
export * from "./src/prompts.ts";
export {ProgressBar,Spinner} from "./src/progress.ts";
// IO and Process
export * from "./src/io.ts";
export * from "./src/types/process.ts";