first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

38
node_modules/@oclif/core/lib/args.d.ts generated vendored Normal file
View File

@@ -0,0 +1,38 @@
import { URL } from 'node:url';
import { Arg, ArgDefinition } from './interfaces/parser';
/**
* Create a custom arg.
*
* @example
* type Id = string
* type IdOpts = { startsWith: string; length: number };
*
* export const myArg = custom<Id, IdOpts>({
* parse: async (input, opts) => {
* if (input.startsWith(opts.startsWith) && input.length === opts.length) {
* return input
* }
*
* throw new Error('Invalid id')
* },
* })
*/
export declare function custom<T = string, P = Record<string, unknown>>(_defaults: Partial<Arg<T, P>>): ArgDefinition<T, P>;
export declare const boolean: ArgDefinition<boolean, Record<string, unknown>>;
export declare const integer: ArgDefinition<number, {
max?: number;
min?: number;
}>;
export declare const directory: ArgDefinition<string, {
exists?: boolean;
}>;
export declare const file: ArgDefinition<string, {
exists?: boolean;
}>;
/**
* Initializes a string as a URL. Throws an error
* if the string is not a valid URL.
*/
export declare const url: ArgDefinition<URL, Record<string, unknown>>;
declare const stringArg: ArgDefinition<string, Record<string, unknown>>;
export { stringArg as string };