Mercurial > public > mercurial-scm > hg
view rust/rhg/src/commands.rs @ 45530:b1cea0dc9db0
rhg: Add debug timing
Differential Revision: https://phab.mercurial-scm.org/D8962
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 23 Sep 2020 12:26:16 +0200 |
parents | 66756b34c06e |
children | 33ded2d3f4fc |
line wrap: on
line source
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>; }