import {Container} from 'inversify'; import {ProgressBar} from "./interfaces/progress-bar"; import {ProgressBarImpl} from "./implementations/progress-bar-impl"; import {CommandLine} from "./interfaces/command-line"; import {CommandLineImpl} from "./implementations/command-line-impl"; import {CommandUtilImpl} from "./implementations/command-util-impl"; import {NestedYargs} from "./interfaces/nested-yargs-wrapper"; import {NestedYargsImpl} from "./implementations/nested-yargs-wrapper-impl"; import {Spawn} from "./interfaces/spawn"; import {SpawnImpl} from "./implementations/spawn-impl"; import {CommandUtil} from "./interfaces/command-util"; import {CommandImpl} from "./implementations/command-impl"; import {Command} from "./interfaces/command"; import {Positive} from "./interfaces/positive"; import {PositiveImpl} from "./implementations/positive-impl"; import {ProgressTaskImpl} from "./implementations/progress-task-impl"; import {ProgressTask} from "./interfaces/progress-task"; import {IPostal} from "./interfaces/postal"; import {PostalImpl} from "./implementations/postal-impl"; import {Crypton} from "./interfaces/crypton"; import {CryptonImpl} from "./implementations/crypton-impl"; import {RemoteCatalogGetterImpl} from "./implementations/remote-catalog-impl"; import {SafeJson} from "./interfaces/safe-json"; import {SafeJsonImpl} from "./implementations/safe-json-impl"; import {RemoteCatalogGetter} from "./interfaces/remote-catalog/remote-catalog-getter"; let kernel = new Container(); kernel.bind('CommandUtil').to(CommandUtilImpl).inSingletonScope(); kernel.bind('ProgressBar').to(ProgressBarImpl).inSingletonScope(); kernel.bind('Crypton').to(CryptonImpl).inSingletonScope(); kernel.bind('SafeJson').to(SafeJsonImpl).inSingletonScope(); kernel.bind('IPostal').to(PostalImpl).inSingletonScope(); kernel.bind('ProgressTask').to(ProgressTaskImpl); kernel.bind('CommandLine').to(CommandLineImpl); kernel.bind('NestedYargs').to(NestedYargsImpl); kernel.bind('CommandImpl').to(CommandImpl); kernel.bind('Spawn').to(SpawnImpl); kernel.bind('Positive').to(PositiveImpl); kernel.bind('RemoteCatalogGetter').to(RemoteCatalogGetterImpl).inSingletonScope(); export default kernel;