Click _after_ break
This commit is contained in:
parent
44a9cccbbb
commit
4f8927d0d3
@ -16,8 +16,7 @@ var breakCmd = &cobra.Command{
|
||||
Use: "break",
|
||||
Short: "Start a break",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
length := viper.GetDuration("breaklength")
|
||||
viper.Set("lastbreak", time.Now().Add(length))
|
||||
viper.Set("lastbreak", time.Now())
|
||||
viper.WriteConfig()
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user