forked from tidbyt/pixlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
41 lines (36 loc) · 912 Bytes
/
main.go
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
39
40
41
package main
import (
"os"
"github.com/spf13/cobra"
"tidbyt.dev/pixlet/cmd"
"tidbyt.dev/pixlet/cmd/community"
)
var (
rootCmd = &cobra.Command{
Use: "pixlet",
Short: "pixel graphics rendering",
Long: "Pixlet renders graphics for pixel devices, like Tidbyt",
SilenceUsage: true,
}
)
func init() {
rootCmd.AddCommand(cmd.RenderCmd)
rootCmd.AddCommand(cmd.PushCmd)
rootCmd.AddCommand(cmd.EncryptCmd)
rootCmd.AddCommand(cmd.VersionCmd)
rootCmd.AddCommand(cmd.ProfileCmd)
rootCmd.AddCommand(cmd.LoginCmd)
rootCmd.AddCommand(cmd.DevicesCmd)
rootCmd.AddCommand(cmd.ListCmd)
rootCmd.AddCommand(cmd.DeleteCmd)
rootCmd.AddCommand(cmd.FormatCmd)
rootCmd.AddCommand(cmd.LintCmd)
rootCmd.AddCommand(cmd.CheckCmd)
rootCmd.AddCommand(cmd.SetAuthCmd)
rootCmd.AddCommand(community.CommunityCmd)
}
func main() {
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}