Summarize tasks nicely in console output

This commit is contained in:
Dustin J. Mitchell
2021-05-30 16:36:20 -04:00
parent adfde8be15
commit 9e3646bf84
3 changed files with 20 additions and 9 deletions

View File

@@ -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(())
}