An abstract class with a method to execute a subprocess using execa.
Type: object literal
Type: boolean
Default: true
Whether to output a subprocess stdout / stderr (useful for debuging)
Type: string
const { ExecaCommand } = require("@abstracter/atomic-release/commands");
class MoveCommand extends ExecCommand {
async do() {
await this.execa("mv", ["a", "b"]);
}
async undo() {
await this.execa("mv", ["b", "a"]);
}
}