@reliverse/rse-sdk
Version:
@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).
22 lines (21 loc) • 675 B
TypeScript
/**
* Called when the user passes `--get <names>` or `--get all`.
* Skips the interactive selection.
*/
export declare function handleDirectRules(opts: {
cwd: string;
isDev: boolean;
source: "official" | "community" | "prompt";
ruleNames: string[];
}): Promise<void>;
/**
* Main menu handler for the rules command.
* If `source` is "prompt", we display the interactive menu.
* If `source` is "official" or "community", we skip the menu
* and download from that source directly.
*/
export declare function showRulesMenu({ cwd, isDev, source, }: {
cwd: string;
isDev: boolean;
source: "official" | "community" | "prompt";
}): Promise<void>;