clan_cli: create key directory #521

Merged
lassulus merged 1 commits from a-kenji-mkdir/clan/cli into main 2023-11-16 11:18:33 +00:00
Owner

Create the secrets key directory, if not already present.

Create the secrets key directory, if not already present.
clan-bot was assigned by kenji 2023-11-15 22:31:15 +00:00
kenji added 1 commit 2023-11-15 22:31:15 +00:00
clan_cli: create key directory
All checks were successful
checks / test (pull_request) Successful in 1m3s
checks-impure / test (pull_request) Successful in 1m50s
12930b4057
clan-bot was unassigned by lassulus 2023-11-16 11:17:57 +00:00
clan-bot was assigned by lassulus 2023-11-16 11:18:02 +00:00
lassulus merged commit 2f870d2c83 into main 2023-11-16 11:18:33 +00:00
lassulus deleted branch a-kenji-mkdir/clan/cli 2023-11-16 11:18:33 +00:00
Mic92 reviewed 2023-11-16 12:16:01 +00:00
@ -10,6 +10,8 @@ def generate_key() -> str:
if path.exists():
raise ClanError(f"Key already exists at {path}")
priv_key, pub_key = generate_private_key()
if not (parent := path.parent).exists():
Owner

That condition is not needed with exist_ok=True

That condition is not needed with `exist_ok=True`
Owner
https://git.clan.lol/clan/clan-core/pulls/522
Mic92 marked this conversation as resolved
Mic92 added the
changes-requested
label 2023-11-16 12:16:12 +00:00
Mic92 removed the
changes-requested
label 2023-11-16 12:20:31 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: clan/clan-core#521
No description provided.