fastmonkeys/stellar — pull request #37 by nealtodd (2014-09-12 15:12:17+00:00)
Title: Adds a Replace command

A convenience command that just wraps the remove and snapshot commands so that an existing named snapshot can be replaced in one step.

Use case is when using named snapshots to switch between development branches (e.g. naming the snapshots branchA, branchB, etc) but update the corresponding branch snapshot before you switch. In other words use Stellar to keep each branch's snapshot in its last used state, ready for when it's returned to.

Equivalent to `stellar remove [name]` followed by `stellar snapshot [name]`. Yes, that could just as easily be a command line alias, but it's a trivial addition.

(Also fixed a bug when calling `stellar restore` without a name and no existing snapshots.)