firmament-bash
Version:
Firmament module for interpreting commands in JSON files using bash
13 lines (10 loc) • 762 B
text/typescript
import {kernel, Command} from 'firmament-yargs';
import {BashCommandImpl} from './implementations/commands/bash-command-impl';
import {ProcessCommandJsonImpl} from './implementations/process-command-json-impl';
import {ProcessCommandJson} from './interfaces/process-command-json';
import {ExecutionGraphResolver} from "./interfaces/execution-graph-resolver";
import {ExecutionGraphResolverImpl} from "./implementations/execution-graph-resolver-impl";
kernel.bind<ProcessCommandJson>('ProcessCommandJson').to(ProcessCommandJsonImpl).inSingletonScope();
kernel.bind<ExecutionGraphResolver>('ExecutionGraphResolver').to(ExecutionGraphResolverImpl).inSingletonScope();
kernel.bind<Command>('Command').to(BashCommandImpl).inSingletonScope();
export default kernel;