mirror of
https://gitlab.com/TECHNOFAB/soonix.git
synced 2026-02-02 15:25:05 +01:00
fix(module): set CHECK_MODE and SKIP_GITIGNORE in shell hook to default
add mkCLI shorthand
This commit is contained in:
parent
5caa66ec8d
commit
837ee45bed
2 changed files with 4 additions and 0 deletions
|
|
@ -22,4 +22,5 @@ in rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
mkShellHook = userConfig: (make userConfig).config.shellHook;
|
mkShellHook = userConfig: (make userConfig).config.shellHook;
|
||||||
|
mkCLI = userConfig: (make userConfig).config.packages.soonix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,9 @@ in {
|
||||||
builtins.addErrorContext "[soonix] while generating shell hook"
|
builtins.addErrorContext "[soonix] while generating shell hook"
|
||||||
# sh
|
# sh
|
||||||
''
|
''
|
||||||
|
CHECK_MODE=''${CHECK_MODE:-false}
|
||||||
|
SKIP_GITIGNORE=''${SKIP_GITIGNORE:-false}
|
||||||
|
|
||||||
_soonix_log() {
|
_soonix_log() {
|
||||||
local level="$1"
|
local level="$1"
|
||||||
local hook="$2"
|
local hook="$2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue