🌷 the cutsie hackatime helper
1package main
2
3import (
4 "context"
5 "os"
6
7 "github.com/charmbracelet/fang"
8 "github.com/spf13/cobra"
9 "github.com/taciturnaxolotl/akami/handler"
10)
11
12func main() {
13 // init our cobra command with a name and description
14 cmd := &cobra.Command{
15 Use: "akami",
16 Short: "🌷 the cutsie hackatime helper",
17 }
18
19 // diagnose command
20 cmd.AddCommand(handler.Doctor())
21
22 // this is where we get the fancy fang magic ✨
23 if err := fang.Execute(
24 context.Background(),
25 cmd,
26 ); err != nil {
27 os.Exit(1)
28 }
29}