integrate webserver into cli

This commit is contained in:
Jörg Thalheim
2023-08-23 17:17:34 +02:00
parent 79c61f61c7
commit d60548dfc4
4 changed files with 93 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
{ age
, argcomplete
, fastapi
, uvicorn
, bubblewrap
, installShellFiles
, nix
@@ -22,7 +24,11 @@ let
# evaluating the flake .#
CLAN_OPTIONS_FILE = ./clan_cli/config/jsonschema/options.json;
dependencies = [ argcomplete ];
dependencies = [
argcomplete # optional dependency: if not enabled, shell completion will not work
fastapi
uvicorn # optional dependencies: if not enabled, webui subcommand will not work
];
testDependencies = [
pytest
@@ -73,7 +79,7 @@ python3.pkgs.buildPythonPackage {
wheel
] ++ testDependencies;
passthru.testDependencies = testDependencies;
passthru.testDependencies = dependencies ++ testDependencies;
makeWrapperArgs = [
"--set CLAN_FLAKE ${self}"