Merge pull request 'pkgs/clan: Fix template listing' (#4291) from kenji/ke-template-fix into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4291
This commit is contained in:
@@ -20,7 +20,7 @@ def list_command(args: argparse.Namespace) -> None:
|
||||
if not builtin_template_set:
|
||||
continue
|
||||
|
||||
print(f"Avilable '{template_type}' templates")
|
||||
print(f"Available '{template_type}' templates")
|
||||
print("├── <builtin>")
|
||||
for i, (name, template) in enumerate(builtin_template_set.items()):
|
||||
description = template.get("description", "no description")
|
||||
|
||||
@@ -12,9 +12,9 @@ def test_templates_list(
|
||||
with capture_output as output:
|
||||
cli.run(["templates", "list", "--flake", str(test_flake_with_core.path)])
|
||||
print(output.out)
|
||||
assert "Avilable 'clan' templates" in output.out
|
||||
assert "Avilable 'disko' templates" in output.out
|
||||
assert "Avilable 'machine' templates" in output.out
|
||||
assert "Available 'clan' templates" in output.out
|
||||
assert "Available 'disko' templates" in output.out
|
||||
assert "Available 'machine' templates" in output.out
|
||||
assert "single-disk" in output.out
|
||||
assert "<builtin>" in output.out
|
||||
assert "default:" in output.out
|
||||
|
||||
Reference in New Issue
Block a user