view rust/rhg/src/commands.rs @ 46387:c41ac8985fe4

perf: test the formatting of a command help Since we are about to addd ':' in command name I want this covered. Differential Revision: https://phab.mercurial-scm.org/D9871
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 25 Jan 2021 23:13:01 +0100
parents ead435aa5294
children a6e4e4650bac
line wrap: on
line source

pub mod cat;
pub mod debugdata;
pub mod debugrequirements;
pub mod files;
pub mod root;
use crate::error::CommandError;
use crate::ui::Ui;

/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
    fn run(&self, ui: &Ui) -> Result<(), CommandError>;
}