Mercurial > public > mercurial-scm > hg
view rust/rhg/src/commands.rs @ 45364:5fe25f8ef5d9
rhg: add a `Files` `Command` to prepare the `rhg files` subcommand
Differential Revision: https://phab.mercurial-scm.org/D8868
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 29 Jul 2020 10:21:17 +0200 |
parents | 47997afadf08 |
children | ed95ccc94333 |
line wrap: on
line source
pub mod files; pub mod root; use crate::error::CommandError; /// The common trait for rhg commands /// /// Normalize the interface of the commands provided by rhg pub trait Command<'a> { fn run(&self) -> Result<(), CommandError>; }