task-pipeliner 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/package.json +1 -1
package/README.ko.md
CHANGED
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ Tip: To start the daemon, run: tp schedule start -d. Press Ctrl+C to exit this v
|
|
|
66
66
|
Press Ctrl+C to exit this view (daemon keeps running in background)`):h.default.gray(`
|
|
67
67
|
Tip: To start the daemon, run: tp schedule start -d. Press Ctrl+C to exit this view.`);(0,ce.default)(`${n}${i}`),await new Promise(()=>{})}else{Mt();let e=await Ge(),o=(await $()).running?"":h.default.gray(`
|
|
68
68
|
Tip: To start the daemon, run: tp schedule start -d`);console.log(`${e}${o}
|
|
69
|
-
`)}}async function Do(){let r=new T,e=await r.loadSchedules();if(e.length===0){console.log("No schedules found");return}let{scheduleId:t}=await Y.default.prompt([{type:"list",name:"scheduleId",message:"Select schedule to toggle:",choices:e.map(s=>({name:`${s.name??s.workflowPath} (${s.cron}) ${s.enabled?"\u2713":"\u2717"}`,value:s.id}))}]),o=e.find(s=>s.id===t);if(!o){console.log("\u2717 Schedule not found");return}let n=!o.enabled;await r.toggleSchedule(t,n),console.log(`\u2713 Schedule ${n?"enabled":"disabled"}: ${o.name??o.workflowPath}`)}async function To(){let r=new T,e=await r.loadSchedules();if(e.length===0){console.log("No schedules found");return}let{confirm:t}=await Y.default.prompt([{type:"confirm",name:"confirm",message:`Are you sure you want to remove all ${e.length} schedule(s)?`,default:!1}]);if(!t){console.log("Cancelled");return}await r.saveSchedules([]),console.log(`\u2713 Removed all ${e.length} schedule(s)`)}var F=require("fs"),E=require("path"),Ze=require("url"),Ft={};function Lt(){console.log=()=>{},console.error=()=>{},console.warn=()=>{},console.info=()=>{},process.stdout.write=()=>!0,process.stderr.write=()=>!0}function Bt(){return"0.3.
|
|
69
|
+
`)}}async function Do(){let r=new T,e=await r.loadSchedules();if(e.length===0){console.log("No schedules found");return}let{scheduleId:t}=await Y.default.prompt([{type:"list",name:"scheduleId",message:"Select schedule to toggle:",choices:e.map(s=>({name:`${s.name??s.workflowPath} (${s.cron}) ${s.enabled?"\u2713":"\u2717"}`,value:s.id}))}]),o=e.find(s=>s.id===t);if(!o){console.log("\u2717 Schedule not found");return}let n=!o.enabled;await r.toggleSchedule(t,n),console.log(`\u2713 Schedule ${n?"enabled":"disabled"}: ${o.name??o.workflowPath}`)}async function To(){let r=new T,e=await r.loadSchedules();if(e.length===0){console.log("No schedules found");return}let{confirm:t}=await Y.default.prompt([{type:"confirm",name:"confirm",message:`Are you sure you want to remove all ${e.length} schedule(s)?`,default:!1}]);if(!t){console.log("Cancelled");return}await r.saveSchedules([]),console.log(`\u2713 Removed all ${e.length} schedule(s)`)}var F=require("fs"),E=require("path"),Ze=require("url"),Ft={};function Lt(){console.log=()=>{},console.error=()=>{},console.warn=()=>{},console.info=()=>{},process.stdout.write=()=>!0,process.stderr.write=()=>!0}function Bt(){return"0.3.1"}function Wt(r){let e=r?(0,E.resolve)(r):process.cwd(),t=50,o=0;for(;o<t;){let n=(0,E.resolve)(e,"tp");try{if((0,F.existsSync)(n)&&(0,F.statSync)(n).isDirectory())return n}catch{}let s=(0,E.dirname)(e);if(s===e)break;e=s,o++}return null}var ue=(0,U.join)((0,Vt.homedir)(),".pipeliner"),Io=(0,Ht.promisify)(_t.exec),J=new zt.Command;J.name("task-pipeliner").description(`A powerful task pipeline runner with condition-based workflow execution.
|
|
70
70
|
|
|
71
71
|
Define workflows in YAML or JSON files with conditional execution, parallel tasks,
|
|
72
72
|
interactive prompts, variable substitution, and cron-based scheduling.
|