rust/rhg/src/commands.rs
author Simon Sapin <simon-commits@exyr.org>
Wed, 02 Dec 2020 08:23:31 +0100
changeset 46034 0c02c2a0badb
parent 45923 ead435aa5294
child 46484 a6e4e4650bac
permissions -rw-r--r--
rhg: add a test with persistent-nodemap Differential Revision: https://phab.mercurial-scm.org/D9519

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>;
}