Click _after_ break

This commit is contained in:
Brian Buller 2023-03-31 12:56:12 -05:00
parent 44a9cccbbb
commit 4f8927d0d3

View File

@ -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()
},
}