rust/rhg/src/commands.rs
author Antoine Cezar <antoine.cezar@octobus.net>
Tue, 15 Sep 2020 16:51:11 +0200
changeset 45542 33ded2d3f4fc
parent 45528 66756b34c06e
child 45923 ead435aa5294
permissions -rw-r--r--
rhg: add a limited `rhg cat -r` subcommand It only supports revision specification (rev or full hash) and the list of files to cat. Differential Revision: https://phab.mercurial-scm.org/D9052

pub mod cat;
pub mod debugdata;
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>;
}