refactor(modules)!: allow multiple instances for taskfile & process-compose

This commit is contained in:
technofab 2025-12-19 16:05:00 +01:00
parent 25fb9162ff
commit 5262901404
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
6 changed files with 199 additions and 134 deletions

View file

@ -14,7 +14,7 @@ in {
script = let
shell = devshell.mkShell {
imports = [module];
process-compose.enable = true;
process-compose."default" = {};
};
in
# sh
@ -23,6 +23,21 @@ in {
assert "-f ${shell}/bin/pc" "/bin/pc should exist"
'';
}
{
name = "alias";
type = "script";
script = let
shell = devshell.mkShell {
imports = [module];
process-compose."pctest" = {};
};
in
# sh
''
${ntlib.helpers.scriptHelpers}
assert "-f ${shell}/bin/pctest" "/bin/pctest should exist"
'';
}
];
};
}