@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
19 lines • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class ViewFixture {
writer;
cwd;
syncAction;
constructor(cwd, viewWriter, syncAction) {
this.cwd = cwd;
this.writer = viewWriter;
this.syncAction = syncAction;
}
async createViewController(options) {
const files = await this.writer.writeSkillViewController(this.cwd, options);
await this.syncAction.execute();
return files[0];
}
}
exports.default = ViewFixture;
//# sourceMappingURL=ViewFixture.js.map