feat(VCS): auto-commit hooked up to all changeful commands
This commit is contained in:
parent
63e2cc55a0
commit
9506a2b657
6 changed files with 112 additions and 14 deletions
|
|
@ -165,7 +165,8 @@ func restore(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
fmt.Fprintf(cmd.ErrOrStderr(), "Restored %d entries into @%s\n", restored, dbName)
|
||||
return nil
|
||||
msg := fmt.Sprintf("restore @%s (%d entries)", dbName, restored)
|
||||
return autoCommit(store, []string{dbName}, msg)
|
||||
}
|
||||
|
||||
func restoreInput(cmd *cobra.Command) (io.Reader, io.Closer, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue