Mercurial > public > mercurial-scm > hg
view rust/rhg/src/commands.rs @ 45542:33ded2d3f4fc
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
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Tue, 15 Sep 2020 16:51:11 +0200 |
parents | 66756b34c06e |
children | ead435aa5294 |
line wrap: on
line source
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>; }