Imagine knowing how your own tools work.

This commit is contained in:
flash 2024-06-10 03:03:24 +00:00
parent 11bed96f9d
commit 338b200246

View file

@ -22,9 +22,9 @@ module.exports = function(env) {
return {
process: async (task, vars) => {
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? ':command :path', {
':command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
':path': task.source,
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? '{command} {path}', {
'command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
'path': task.source,
}));
if(stdout.trim() === '')