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