mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 18:22:42 -08:00
refactor state and overlay runtime helpers
This commit is contained in:
15
src/main/cli-runtime.ts
Normal file
15
src/main/cli-runtime.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { handleCliCommandService, createCliCommandDepsRuntimeService } from "../core/services";
|
||||
import type { CliArgs, CliCommandSource } from "../cli/args";
|
||||
import { createCliCommandRuntimeServiceDeps, CliCommandRuntimeServiceDepsParams } from "./dependencies";
|
||||
|
||||
export function handleCliCommandRuntimeService(
|
||||
args: CliArgs,
|
||||
source: CliCommandSource,
|
||||
params: CliCommandRuntimeServiceDepsParams,
|
||||
): void {
|
||||
const deps = createCliCommandDepsRuntimeService(
|
||||
createCliCommandRuntimeServiceDeps(params),
|
||||
);
|
||||
handleCliCommandService(args, source, deps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user