rust/rhg/src/commands.rs
author Simon Sapin <simon-commits@exyr.org>
Tue, 24 Nov 2020 15:11:58 +0100
changeset 45923 ead435aa5294
parent 45542 33ded2d3f4fc
child 46484 a6e4e4650bac
permissions -rw-r--r--
rhg: add a `debugrequirements` subcommand For now it only prints the contents of `.hg/requires` as-is, without parsing. Differential Revision: https://phab.mercurial-scm.org/D9397

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