mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 12:11:28 -07:00
18 lines
749 B
TypeScript
18 lines
749 B
TypeScript
import type { CliArgs } from '../../cli/args';
|
|
|
|
export function createBuildHandleTexthookerOnlyModeTransitionMainDepsHandler(deps: {
|
|
isTexthookerOnlyMode: () => boolean;
|
|
setTexthookerOnlyMode: (enabled: boolean) => void;
|
|
commandNeedsOverlayRuntime: (args: CliArgs) => boolean;
|
|
startBackgroundWarmups: () => void;
|
|
logInfo: (message: string) => void;
|
|
}) {
|
|
return () => ({
|
|
isTexthookerOnlyMode: () => deps.isTexthookerOnlyMode(),
|
|
setTexthookerOnlyMode: (enabled: boolean) => deps.setTexthookerOnlyMode(enabled),
|
|
commandNeedsOverlayRuntime: (args: CliArgs) => deps.commandNeedsOverlayRuntime(args),
|
|
startBackgroundWarmups: () => deps.startBackgroundWarmups(),
|
|
logInfo: (message: string) => deps.logInfo(message),
|
|
});
|
|
}
|