Mercurial > public > mercurial-scm > hg-stable
view rust/rhg/src/commands.rs @ 45534:66756b34c06e
rhg: add a `DebugData` `Command` to prepare the `rhg debugdata` subcommand
Differential Revision: https://phab.mercurial-scm.org/D8960
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 09 Sep 2020 12:07:05 +0200 |
parents | ed95ccc94333 |
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>; }