logsdx
Version:
<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>
71 lines (70 loc) • 2.53 kB
TypeScript
import { z } from "zod";
export declare const cliOptionsSchema: z.ZodObject<{
input: z.ZodOptional<z.ZodString>;
output: z.ZodOptional<z.ZodString>;
theme: z.ZodOptional<z.ZodString>;
config: z.ZodOptional<z.ZodString>;
debug: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
listThemes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
interactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
preview: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
noSpinner: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
format: z.ZodOptional<z.ZodEnum<["ansi", "html"]>>;
generateTheme: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
listPalettes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
listPatterns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
exportTheme: z.ZodOptional<z.ZodString>;
importTheme: z.ZodOptional<z.ZodString>;
listThemeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
debug: boolean;
quiet: boolean;
listThemes: boolean;
interactive: boolean;
preview: boolean;
noSpinner: boolean;
generateTheme: boolean;
listPalettes: boolean;
listPatterns: boolean;
listThemeFiles: boolean;
theme?: string | undefined;
input?: string | undefined;
output?: string | undefined;
config?: string | undefined;
format?: "ansi" | "html" | undefined;
exportTheme?: string | undefined;
importTheme?: string | undefined;
}, {
debug?: boolean | undefined;
theme?: string | undefined;
input?: string | undefined;
output?: string | undefined;
config?: string | undefined;
quiet?: boolean | undefined;
listThemes?: boolean | undefined;
interactive?: boolean | undefined;
preview?: boolean | undefined;
noSpinner?: boolean | undefined;
format?: "ansi" | "html" | undefined;
generateTheme?: boolean | undefined;
listPalettes?: boolean | undefined;
listPatterns?: boolean | undefined;
exportTheme?: string | undefined;
importTheme?: string | undefined;
listThemeFiles?: boolean | undefined;
}>;
export type CliOptions = z.infer<typeof cliOptionsSchema>;
export type CommanderOptions = CliOptions;
export interface SpinnerLike {
start(): this;
succeed(message?: string): this;
fail(message?: string): this;
stop(): this;
text?: string;
}
export interface ProgressBarLike {
start(total: number, startValue: number): void;
update(current: number): void;
stop(): void;
}