mirror of
https://gitlab.com/rensa-nix/devtools.git
synced 2026-02-02 07:15:08 +01:00
refactor(modules)!: allow multiple instances for taskfile & process-compose
This commit is contained in:
parent
25fb9162ff
commit
5262901404
6 changed files with 199 additions and 134 deletions
|
|
@ -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"
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue