Added better error handling in --flake argument
This commit is contained in:
@@ -9,6 +9,9 @@ log = logging.getLogger(__name__)
|
||||
def get_clan_flake_toplevel() -> Path | None:
|
||||
return find_toplevel([".clan-flake", ".git", ".hg", ".svn", "flake.nix"])
|
||||
|
||||
def is_clan_flake(path: Path) -> bool:
|
||||
return (path / ".clan-flake").exists()
|
||||
|
||||
|
||||
def find_git_repo_root() -> Path | None:
|
||||
return find_toplevel([".git"])
|
||||
|
||||
Reference in New Issue
Block a user