Mercurial > public > mercurial-scm > hg-stable
view rust/rhg/src/commands.rs @ 45938:ead435aa5294
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
author | Simon Sapin <simon-commits@exyr.org> |
---|---|
date | Tue, 24 Nov 2020 15:11:58 +0100 |
parents | 33ded2d3f4fc |
children | a6e4e4650bac |
line wrap: on
line source
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>; }