1 2 3 4 5 6 7 8 9 10
use anyhow::Result; /// Trait implemented by every k2tools subcommand. pub trait Command { /// Execute the command. /// /// # Errors /// Returns an error if the command fails. fn execute(&self) -> Result<()>; }