-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
38 lines (32 loc) · 783 Bytes
/
main.go
File metadata and controls
38 lines (32 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"context"
"flag"
"os"
cmd "github.com/nehrbash/hyprshell/subcommands"
sc "github.com/google/subcommands"
)
var (
Version string // Latest Git tag (e.g. v1.0.1)
BuildDate string // Date the binary was built
)
func init() {
sc.Register(sc.HelpCommand(), "")
sc.Register(sc.FlagsCommand(), "")
sc.Register(sc.CommandsCommand(), "")
sc.Register(&cmd.Daemon{}, "")
sc.Register(&cmd.Weather{}, "")
sc.Register(&cmd.Dock{}, "")
sc.Register(&cmd.Submap{}, "")
sc.Register(&cmd.Monitor{}, "")
sc.Register(&cmd.Workspaces{}, "")
sc.Register(&cmd.Quote{}, "")
sc.Register(&cmd.Battery{}, "")
sc.Register(&cmd.Title{}, "")
sc.Register(&cmd.Music{}, "")
flag.Parse()
}
func main() {
ctx := context.Background()
os.Exit(int(sc.Execute(ctx)))
}