Skip with serde ephemera config

This commit is contained in:
Bogdan-Ștefan Neacșu
2023-07-18 16:07:04 +03:00
parent 45f39b9413
commit 98e3dd9ae0
3 changed files with 10 additions and 3 deletions
+1 -3
View File
@@ -160,8 +160,6 @@ impl Cmd {
},
};
if let Err(err) = configuration.try_write_home_dir(id) {
eprintln!("Error creating configuration file: {err:?}",);
}
configuration.try_write_home_dir(id).ok();
}
}
+3
View File
@@ -21,10 +21,13 @@ pub struct Args {
#[clap(skip)]
pub ephemera_config: PathBuf,
#[command(flatten)]
#[serde(skip)]
pub cmd: Cmd,
#[clap(skip)]
#[serde(skip)]
pub block_polling_interval_seconds: u64,
#[clap(skip)]
#[serde(skip)]
pub block_polling_max_attempts: u64,
}
+6
View File
@@ -130,4 +130,10 @@ decryption_key_path = '{{ coconut_signer.storage_paths.decryption_key_path }}'
# Path to the dkg dealer public key with proof
public_key_with_proof_path = '{{ coconut_signer.storage_paths.public_key_with_proof_path }}'
[ephemera]
[ephemera.args]
ephemera_config = '{{ ephemera.args.ephemera_config }}'
"#;