Initial commit - full huishou project

This commit is contained in:
jiapengyu
2026-07-27 14:07:26 +08:00
commit 60790ad1b3
39127 changed files with 5989265 additions and 0 deletions
@@ -0,0 +1,9 @@
export interface Flag {
name: string;
value?: string;
/** Value came from the next token rather than being embedded after `=`. */
absorbedNext: boolean;
/** Switch appeared before the git sub-command. */
isGlobal: boolean;
}
export declare function scopedFlags(flags: Flag[], scope: 'global' | 'task'): Generator<Flag, void, unknown>;
@@ -0,0 +1,6 @@
import type { Flag } from './flags.helpers';
export interface GlobalFlags {
flags: Flag[];
taskIndex: number;
}
export declare function parseGlobalFlags(tokens: readonly unknown[], flags?: Flag[]): GlobalFlags;
@@ -0,0 +1,8 @@
import type { Flag } from './flags.helpers';
type TaskFlags = {
flags: Flag[];
positionals: string[];
pathspecs: string[];
};
export declare function parseTaskFlags(tokens: readonly unknown[], task: string | null, flags?: Flag[]): TaskFlags;
export {};