1.120.0 • Published 8 months ago
@biorate/command v1.120.0
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
Copyright (c) 2021-present Leonid Levkin (llevkin)