Also commit files when adding machines/users or removing secrets

This commit is contained in:
Jörg Thalheim
2024-02-22 16:06:39 +01:00
parent 65d2a4e081
commit 52fcc91479
4 changed files with 28 additions and 6 deletions

View File

@@ -124,6 +124,11 @@ def remove_secret(flake_dir: Path, secret: str) -> None:
if not path.exists():
raise ClanError(f"Secret '{secret}' does not exist")
shutil.rmtree(path)
commit_files(
[path],
flake_dir,
f"Remove secret {secret}",
)
def remove_command(args: argparse.Namespace) -> None: