adlee-was-taken
|
4d02a50cc8
|
chore(core): fix pre-existing clippy warnings (-D warnings gate)
Resolves pre-existing lint issues in imgsecret.rs, time.rs, totp.rs,
and crypto.rs that blocked the cargo clippy --workspace -D warnings
gate. No logic changes: loop-index → iterator, manual div_ceil →
.div_ceil(), manual range contains → .contains(), auto-deref cleanup.
Also fixes pre-existing warnings in relicario-cli (main.rs, session.rs,
device.rs, gitea.rs, helpers.rs, test helpers): dead_code suppression,
too_many_arguments, literal_with_empty_format_string, manual_char_cmp,
map_or → is_none_or, and repeat().take() → vec! in test helpers.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-05-02 19:32:45 -04:00 |
|
adlee-was-taken
|
b1f9f2fbfc
|
feat(cli): implement device add with signing + deploy key
- Create crates/relicario-cli/src/device.rs: local key storage under
~/.config/relicario/devices/<name>/, current-device tracking, and
git signing config (gpg.format=ssh, user.signingkey, core.sshCommand)
- Add Device command to CLI with add/revoke/list subcommands
- cmd_device add: generates two ed25519 keypairs (signing + deploy),
registers deploy key via Gitea API, stores keys at 0600, configures
git SSH signing, updates .relicario/devices.json and commits
- Gitea config read from flags or RELICARIO_GITEA_{URL,TOKEN,OWNER,REPO}
- --no-gitea flag skips API registration for non-Gitea remotes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-05-02 12:19:55 -04:00 |
|