use anyhow::Result;
use clap::Args;
use crate::{app, config, platform};
/// Set the path to the Vector repository
#[derive(Args, Debug)]
#[command()]
pub struct Cli {
path: String,
}
impl Cli {
pub fn exec(self) -> Result<()> {
let path = platform::canonicalize_path(self.path);
let mut config = app::config().clone();
config.repo = path;
config::save(config)?;
Ok(())
}
}