vlt
Version:
The vlt CLI
33 lines (30 loc) • 967 B
JavaScript
var global = globalThis;
import {Buffer} from "node:buffer";
import {setTimeout,clearTimeout,setImmediate,clearImmediate,setInterval,clearInterval} from "node:timers";
import {createRequire as _vlt_createRequire} from "node:module";
var require = _vlt_createRequire(import.meta.filename);
// ../../src/cli-sdk/src/view.ts
var ViewClass = class {
options;
config;
constructor(options, config) {
this.options = options;
this.config = config;
}
// TODO: maybe have start() return a flag to say "i got this, do not
// run the command", for example to have the gui just open a web browser
// to the page relevant to a given thing, rather than computing it twice
start() {
}
async done(_result, _opts) {
return;
}
error(_err) {
}
};
var isViewClass = (view) => typeof view === "function" && "prototype" in view && view.prototype instanceof ViewClass;
export {
ViewClass,
isViewClass
};
//# sourceMappingURL=chunk-YESBS37V.js.map