Summarize tasks nicely in console output
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
use crate::argparse::{DescriptionMod, Modification};
|
||||
use std::convert::TryInto;
|
||||
use taskchampion::TaskMut;
|
||||
use termcolor::WriteColor;
|
||||
|
||||
/// Apply the given modification
|
||||
pub(super) fn apply_modification<W: WriteColor>(
|
||||
w: &mut W,
|
||||
pub(super) fn apply_modification(
|
||||
task: &mut TaskMut,
|
||||
modification: &Modification,
|
||||
) -> anyhow::Result<()> {
|
||||
@@ -42,7 +40,5 @@ pub(super) fn apply_modification<W: WriteColor>(
|
||||
task.remove_tag(&tag)?;
|
||||
}
|
||||
|
||||
writeln!(w, "modified task {}", task.get_uuid())?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user