Fix: dynamically import clan_cli in flake methods

This is a temporary workaround to solve cyclic imports all these modules should be moved to clan_lib
soon afterwards
This commit is contained in:
Johannes Kirschbauer
2025-05-16 17:02:16 +02:00
parent f210b2f9a6
commit 1adcada568
3 changed files with 27 additions and 13 deletions

View File

@@ -207,7 +207,8 @@ def complete_secrets(
"""
Provides completion functionality for clan secrets
"""
from . import Flake
from clan_lib.flake.flake import Flake
from .secrets.secrets import list_secrets
flake = clan_dir_result if (clan_dir_result := clan_dir(None)) is not None else "."