1.120.0 • Published 8 months ago

@biorate/command v1.120.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Command executor

Command executor common interface

Example:

import { CommonCommandSync, CommonCommandAsync } from '@biorate/command';

export class EchoSyncCommand extends CommonCommandSync {
  protected command = [`echo #{value}`];

  protected override options = { cwd: '/tmp' };

  public static override execute(options: { value: string | number }) {
    return super.execute(options);
  }
}

export class EchoAsyncCommand extends CommonCommandAsync {
  protected command = [`echo #{value}`];

  protected override options = { cwd: '/tmp' };

  public static override execute(options: { value: string | number }) {
    return super.execute(options);
  }
}

Learn

  • Documentation can be found here - docs.

Release History

See the CHANGELOG

License

MIT

Copyright (c) 2021-present Leonid Levkin (llevkin)

1.120.0

8 months ago

1.117.0

8 months ago

1.116.0

8 months ago