UI for Zipcoin Blue

executor.d.ts 933B

123456789101112131415
  1. import { CommandMetadata, CommandMetadataInput, CommandMetadataOption, ICommand, INamespace } from '../definitions';
  2. import { Command, Namespace } from './command';
  3. export declare class BaseExecutor<C extends ICommand<C, N, M, I, O>, N extends INamespace<C, N, M, I, O>, M extends CommandMetadata<I, O>, I extends CommandMetadataInput, O extends CommandMetadataOption> {
  4. namespace: N;
  5. constructor(namespace: N);
  6. execute(argv: string[], env: {
  7. [key: string]: string;
  8. }): Promise<void>;
  9. }
  10. export declare class Executor extends BaseExecutor<Command, Namespace, CommandMetadata, CommandMetadataInput, CommandMetadataOption> {
  11. }
  12. export declare function execute<C extends ICommand<C, N, M, I, O>, N extends INamespace<C, N, M, I, O>, M extends CommandMetadata<I, O>, I extends CommandMetadataInput, O extends CommandMetadataOption>(namespace: N, argv: string[], env: {
  13. [key: string]: string;
  14. }): Promise<void>;