mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-03 06:22:41 -08:00
15 lines
802 B
TypeScript
15 lines
802 B
TypeScript
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());
|
|
}
|