Rename replica.gc to replica.rebuild_working_set

The command-line operation is still `gc`, but we'll break that down into
finer pieces in the replica.
This commit is contained in:
Dustin J. Mitchell
2021-01-02 13:23:48 -05:00
parent da63d77d9d
commit b62370c150
4 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,8 @@ use taskchampion::Replica;
use termcolor::WriteColor;
pub(crate) fn execute<W: WriteColor>(w: &mut W, replica: &mut Replica) -> Fallible<()> {
replica.gc()?;
log::debug!("rebuilding working set");
replica.rebuild_working_set()?;
writeln!(w, "garbage collected.")?;
Ok(())
}