update-vars: fallback to gitroot
This commit is contained in:
@@ -8,6 +8,7 @@ from pathlib import Path
|
|||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from clan_cli.dirs import find_git_repo_root
|
||||||
from clan_cli.flake import Flake
|
from clan_cli.flake import Flake
|
||||||
from clan_cli.machines.machines import Machine
|
from clan_cli.machines.machines import Machine
|
||||||
from clan_cli.nix import nix_build, nix_config, nix_eval
|
from clan_cli.nix import nix_build, nix_config, nix_eval
|
||||||
@@ -129,7 +130,7 @@ def parse_args() -> argparse.Namespace:
|
|||||||
i.e. 'nix eval <repo_root>#checks ...'
|
i.e. 'nix eval <repo_root>#checks ...'
|
||||||
""",
|
""",
|
||||||
required=False,
|
required=False,
|
||||||
default=os.environ.get("PRJ_ROOT"),
|
default=os.environ.get("PRJ_ROOT", find_git_repo_root()),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"test_dir",
|
"test_dir",
|
||||||
|
|||||||
Reference in New Issue
Block a user