Merge branch 'feat/cli' into 'main'

feat!: add cli with update and list subcommands + gitignore param

See merge request TECHNOFAB/soonix!3
This commit is contained in:
TECHNOFAB 2026-01-28 14:43:27 +01:00
commit 9d7257d48c
6 changed files with 245 additions and 105 deletions

View file

@ -78,6 +78,27 @@ in {
assert_file_contains ${shellHook} "gomplate"
'';
}
{
name = "packages";
type = "script";
script = let
conf = (soonix.make {inherit hooks;}).config;
soonixBin = conf.packages.soonix + "/bin/soonix";
in
# sh
''
${ntlib.helpers.path [pkgs.gnugrep]}
${ntlib.helpers.scriptHelpers}
assert -f "${soonixBin}" "should exist"
assert_file_contains "${soonixBin}" "gotmpl"
assert_file_contains "${soonixBin}" "test.json"
assert_file_contains "${soonixBin}" "SKIP_GITIGNORE"
assert_file_contains "${soonixBin}" "CHECK_MODE"
'';
}
];
};
}