#[derive(Debug)]
pub struct CommandOptions {
wallet_path: String,
}
impl CommandOptions {
pub fn new() -> Self {
CommandOptions {
wallet_path: String::new(),
}
}
fn wallet_path(&self) -> String {
println!("-> CommandOptions::wallet_path()");
String::new() }
}
trait Command {
fn exec(&self);
}
struct AddCommand {
options: CommandOptions,
}
impl Command for AddCommand {
fn exec(&self) {
println!("-> AddCommand::exec()");
}
}