aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/root.go')
-rw-r--r--cmd/root.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go
index 3efadab..5a91eae 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -7,6 +7,10 @@ import (
var rootCmd = &cobra.Command{
Use: "term-clock",
Short: "A clock on your terminal",
+ // Run 'clock' subcommand by default.
+ Run: func(cmd *cobra.Command, args []string) {
+ clockCmd.Run(cmd, args)
+ },
}
func init() {