kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
19 lines • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function getPipelineFromRef(tab, run) {
return tab.REPL.rexec(`kubectl get Pipeline ${run.spec.pipelineRef.name}`)
.catch((err) => {
if (err.code === 404) {
return undefined;
}
else {
throw err;
}
});
}
exports.getPipelineFromRef = getPipelineFromRef;
function getTasks(tab) {
return tab.REPL.rexec('kubectl get Task');
}
exports.getTasks = getTasks;
//# sourceMappingURL=fetch.js.map