Skip to main content

k2tools_lib/commands/
command.rs

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