clan-cli: secrets key generate: fix call to action message

So that it makes sense when an already existing PGP key is specified.
This commit is contained in:
Louis Opter
2025-01-22 18:15:27 +00:00
committed by Mic92
parent 67f26a3abe
commit 34b36fa309

View File

@@ -33,9 +33,9 @@ def generate_key() -> sops.SopsKey:
def generate_command(args: argparse.Namespace) -> None: def generate_command(args: argparse.Namespace) -> None:
key = generate_key() key = generate_key()
print("Also add your age public key to the repository with:")
key_type = key.key_type.name.lower() key_type = key.key_type.name.lower()
print(f"clan secrets users add <username> --{key_type}-key <key>") print(f"Add your {key_type} public key to the repository with:")
print(f"clan secrets users add <username> --{key_type}-key {key.pubkey}")
def show_command(args: argparse.Namespace) -> None: def show_command(args: argparse.Namespace) -> None: