1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! `drone reset` command. use crate::{cli::ResetCmd, probe, probe::Probe, templates::Registry, utils::register_signals}; use anyhow::Result; use drone_config as config; use std::convert::TryFrom; /// Runs `drone reset` command. pub fn run(cmd: ResetCmd) -> Result<()> { let signals = register_signals()?; let registry = Registry::new()?; let config = config::Config::read_from_current_dir()?; let probe = Probe::try_from(&config)?; probe::reset(probe)(cmd, signals, registry, config) }