move FlakeId to flake id

move FlakeId to flake id
This commit is contained in:
Jörg Thalheim
2024-07-03 13:03:40 +02:00
parent f5831f744c
commit 6037ad1ce0
30 changed files with 91 additions and 93 deletions

View File

@@ -109,7 +109,7 @@ class InspectOptions:
def inspect_command(args: argparse.Namespace) -> None:
inspect_options = InspectOptions(
machine=args.machine,
flake=FlakeId(args.flake or Path.cwd()),
flake=args.flake or FlakeId(Path.cwd()),
)
res = inspect_flake(
flake_url=str(inspect_options.flake), machine_name=inspect_options.machine

View File

@@ -69,7 +69,7 @@ def show_clan_meta(uri: str | Path) -> ClanMetaInfo:
def show_command(args: argparse.Namespace) -> None:
flake_path = Path(args.flake).resolve()
flake_path = args.flake.path
meta = show_clan_meta(flake_path)
print(f"Name: {meta.name}")