Skip to content

Commit bb001b8

Browse files
feat(iota): add IOTA-Names Terms and Conditions log/help (#8300)
Adds a message about the IOTA-Names Terms & Conditions at the top of every name command and in the help message.
1 parent 8667775 commit bb001b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/iota/src/iota_commands.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ pub enum IotaCommand {
354354
},
355355
#[cfg(feature = "iota-names")]
356356
/// Manage names registered in IOTA-Names.
357+
/// By using this service, you agree to the Terms & Conditions:
358+
/// testnet.iotanames.com/?modal=terms_conditions."
357359
Name {
358360
/// The file storing the state of the user accounts
359361
#[arg(long = "client.config")]
@@ -582,6 +584,12 @@ impl IotaCommand {
582584
}
583585
#[cfg(feature = "iota-names")]
584586
IotaCommand::Name { config, json, cmd } => {
587+
eprintln!(
588+
"{}",
589+
"By using this service, you agree to the Terms & Conditions: testnet.iotanames.com/?modal=terms_conditions."
590+
.bold()
591+
.yellow()
592+
);
585593
let config_path = config.unwrap_or(iota_config_dir()?.join(IOTA_CLIENT_CONFIG));
586594
prompt_if_no_config(&config_path, false, true, true)?;
587595
let mut context = WalletContext::new(&config_path, None, None)?;

0 commit comments

Comments
 (0)