Mercurial > hg
view rust/rhg/src/commands.rs @ 45367:53af26aa5951
rhg: handle broken pipe error for stderr
Differential Revision: https://phab.mercurial-scm.org/D8871
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Fri, 24 Jul 2020 10:34:04 +0200 |
parents | 5fe25f8ef5d9 |
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>; }