cli: Don't use 'signer' where not necessary
In the ‘clone’ command, a ‘signer’ is instanciated just to get the public key. In the ‘job’ command, a ‘signer’ is instanciated early, even when the subcommand doesn’t use it.
That’s unnecessary, and infers the potential use of RAD_PASSPHRASE. In those cases, avoid instanciating a ‘signer’.
2 files changed
+7
-7
538648c5
→
9abedf44
modified radicle-cli/src/commands/clone.rs
@@ -133,7 +133,6 @@ impl Args for Options {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -148,7 +147,6 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -229,16 +227,15 @@ pub enum CloneError {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -283,7 +280,7 @@ pub fn clone<G: Signer>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-cli/src/commands/job.rs
@@ -205,7 +205,6 @@ impl Args for Options {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -222,6 +221,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -229,6 +229,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -238,9 +239,11 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|