aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmd/timer.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/timer.go b/cmd/timer.go
index aca2380..5288fe1 100644
--- a/cmd/timer.go
+++ b/cmd/timer.go
@@ -1,6 +1,7 @@
package cmd
import (
+ "fmt"
"log"
"time"
@@ -41,6 +42,11 @@ func cmdTimer(cmd *cobra.Command, args []string) {
log.Fatalf("%+v", err)
}
+ if timerTime.Minutes() > 60 {
+ fmt.Println("Duration over 1 hour is not supported.")
+ return
+ }
+
scr, err := term.NewScreen()
if err != nil {
log.Fatalf("%+v", err)