aboutsummaryrefslogtreecommitdiff
path: root/cmd/stop.go
diff options
context:
space:
mode:
authorAlex <a.kiryukhin@mail.ru>2021-12-05 17:49:53 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-12-07 03:08:37 +0300
commit674d9a4a5d0528bbc0c184de2d271004c0e1c831 (patch)
tree58e084ac7fd68922141c334b1112a66edb2bb3f5 /cmd/stop.go
parentbcdbe68ecde049ef62343584bcc26840322c4864 (diff)
first release
Diffstat (limited to 'cmd/stop.go')
-rw-r--r--cmd/stop.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/stop.go b/cmd/stop.go
index ac472cd..f1e9570 100644
--- a/cmd/stop.go
+++ b/cmd/stop.go
@@ -28,7 +28,12 @@ var stopCmd = &cobra.Command{
cmd.PrintErr(err)
return
}
- cmd.Printf("Stopped activity \"%s\".\n", activity.Title)
+ cmd.Printf(
+ "Stopped activity \"%s\".\nLast duration: %s.\nAll spent time: %s.\n",
+ activity.Title,
+ tracker.Timespan(activity.LastDuration()).Format(),
+ tracker.Timespan(activity.Duration()).Format(),
+ )
}
},
}