Skip to content

Commit

Permalink
Update latest folder on Use method
Browse files Browse the repository at this point in the history
  • Loading branch information
jotadrilo committed Jun 17, 2019
1 parent a7f9458 commit 7906ca5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## Release 0.0.9 (2019-06-15)
## Release 0.0.10 (2019-06-15)

- Update latest folder on `Use` command
- Add different alias

## Release 0.0.10 (2019-06-15)

- Sort folders on addition and deletion
- Re-create folder structure on restart
Expand Down
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ func (config *Config) Use(fn int) error {
if fn > len(config.Folders)-1 {
return errors.Errorf("the provided folder number does not match any existing folder")
}
config.Latest = config.Folders[fn]
if err := config.updateLatest(config.Folders[fn]); err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit 7906ca5

Please sign in to comment.