alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
49 lines (42 loc) • 1.52 kB
text/typescript
import { $module } from "alepha";
import { Asker } from "./helpers/Asker.ts";
import { EnvUtils } from "./helpers/EnvUtils.ts";
import { Runner } from "./helpers/Runner.ts";
import { $command } from "./primitives/$command.ts";
import { CliProvider } from "./providers/CliProvider.ts";
// ---------------------------------------------------------------------------------------------------------------------
export * from "./errors/CommandError.ts";
export * from "./helpers/Asker.ts";
export * from "./helpers/EnvUtils.ts";
export * from "./helpers/Runner.ts";
export * from "./primitives/$command.ts";
export * from "./providers/CliProvider.ts";
// ---------------------------------------------------------------------------------------------------------------------
/**
* Declarative CLI command framework.
*
* **Features:**
* - CLI command definitions
* - Interactive CLI prompts (plain readline)
* - Command execution with streamed, verbose output
* - Environment variable utilities
* - Schema validation for CLI arguments
*
* @module alepha.command
*/
export const AlephaCommand = $module({
name: "alepha.command",
primitives: [$command],
services: [CliProvider, Runner, Asker, EnvUtils],
});
// ---------------------------------------------------------------------------------------------------------------------
declare module "alepha" {
interface StringOptions {
/**
* Additional aliases for the flags.
*
* @module alepha.command
*/
aliases?: string[];
}
}