mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
16
src/main/runtime/cli-command-context-factory.ts
Normal file
16
src/main/runtime/cli-command-context-factory.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createCliCommandContext } from './cli-command-context';
|
||||
import { createBuildCliCommandContextDepsHandler } from './cli-command-context-deps';
|
||||
import { createBuildCliCommandContextMainDepsHandler } from './cli-command-context-main-deps';
|
||||
|
||||
type CliCommandContextMainDeps = Parameters<
|
||||
typeof createBuildCliCommandContextMainDepsHandler
|
||||
>[0];
|
||||
|
||||
export function createCliCommandContextFactory(deps: CliCommandContextMainDeps) {
|
||||
const buildCliCommandContextMainDepsHandler = createBuildCliCommandContextMainDepsHandler(deps);
|
||||
const cliCommandContextMainDeps = buildCliCommandContextMainDepsHandler();
|
||||
const buildCliCommandContextDepsHandler =
|
||||
createBuildCliCommandContextDepsHandler(cliCommandContextMainDeps);
|
||||
|
||||
return () => createCliCommandContext(buildCliCommandContextDepsHandler());
|
||||
}
|
||||
Reference in New Issue
Block a user