forked from tidbyt/pixlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
35 lines (30 loc) · 656 Bytes
/
main.go
File metadata and controls
35 lines (30 loc) · 656 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
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"tidbyt.dev/pixlet/cmd"
)
var (
rootCmd = &cobra.Command{
Use: "pixlet",
Short: "pixel graphics rendering",
Long: "Pixlet renders graphics for pixel devices, like Tidbyt",
}
)
func init() {
rootCmd.AddCommand(cmd.ServeCmd)
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)
}
func main() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}