radicle-heartwood-lfs/radicle-cli
Slack Coder 0bfc3f59ee
cli: Auth without ssh-agent
Avoid having ssh-agent a hard dependency of `rad-auth`.

Only add the user's key in `auth::init()` to ssh-agent if it is running,
instead of exiting with error.

For `auth::authenticate()` which is used to authenticate the user with
Radicle, assume using `RAD_PASSPHRASE` is a fallback authentication
method.  If ssh-agent is not-detected, verify the RAD_PASSPHRASE is
present and correct.  Treat neither being present as an error.

Support this by clarifying on `ssh::agent::connect()`s error which are
due to it not being present.
2023-05-03 15:52:33 +02:00
..
examples cli: Auth without ssh-agent 2023-05-03 15:52:33 +02:00
src cli: Auth without ssh-agent 2023-05-03 15:52:33 +02:00
tests cli: test the deletion of cobs 2023-04-28 14:28:46 +02:00
Cargo.toml cli: Make `patch checkout` fetch missing objects 2023-03-18 12:24:17 +01:00