nix: provide default file name when generating module graph

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
Taimoor Zaeem
2026-07-05 00:44:05 +05:00
parent 76c1ec5b06
commit 75b315d077
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -29,3 +29,4 @@ gen_jwks.json
gen_private.json
.pytest_cache
.ruff_cache
postgrest-module-graph.png
+1 -1
View File
@@ -129,7 +129,7 @@ let
{
name = "postgrest-hsie-graph-modules";
docs = "Create a PNG graph of modules imported within the codebase.";
args = [ "ARG_POSITIONAL_SINGLE([outfile], [Output filename])" ];
args = [ "ARG_OPTIONAL_SINGLE([outfile], [o], [Output filename], [postgrest-module-graph.png])" ];
}
''
${hsie} graph-modules main src | ${graphviz}/bin/dot -Tpng -o "$_arg_outfile"