rust/rhg/src/commands.rs
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 03 Oct 2020 14:44:11 -0700
changeset 45643 6a36e2d2011f
parent 45542 33ded2d3f4fc
child 45923 ead435aa5294
permissions -rw-r--r--
contrib: install Rust 1.46.0 Let's use the latest/greatest version of Rust in the automation environment. Differential Revision: https://phab.mercurial-scm.org/D9146

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