Mercurial > public > mercurial-scm > hg-stable
view rust/rhg/src/commands.rs @ 45381:47997afadf08
rhg: ask the error message from `CommandError`
Avoid repeating the display of the same error messages in different commands.
Differential Revision: https://phab.mercurial-scm.org/D8865
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Mon, 20 Jul 2020 18:14:52 +0200 |
parents | 513b3ef277a3 |
children | 5fe25f8ef5d9 |
line wrap: on
line source
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>; }