ockam_command 0.104.0

End-to-end encryption and mutual authentication for distributed applications.
Documentation
use crate::util::local_cmd;
use crate::CommandGlobalOpts;
use clap::Args;

#[derive(Clone, Debug, Args)]
pub struct SetDefaultNodeCommand {
    /// Name of the Node
    pub name: String,
}

impl SetDefaultNodeCommand {
    pub fn run(self, options: CommandGlobalOpts) {
        local_cmd(run_impl(&self.name, &options));
    }
}

fn run_impl(_name: &str, _options: &CommandGlobalOpts) -> miette::Result<()> {
    // TODO: add symlink to options.state.defaults().node
    todo!()
}