forked from AlexsJones/kepler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
48 lines (42 loc) · 1.52 KB
/
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
42
43
44
45
46
47
48
//Kepler is a tool for helping developers work in the cli with github and other tools
//It's speciality is the management of multiple working issues and threading those together with pull requests
//Ideal audience would be a developer working across multiple repositories
package main
import (
"bytes"
"os"
"github.com/AlexsJones/cli/cli"
"github.com/AlexsJones/kepler/commands/github"
"github.com/AlexsJones/kepler/commands/kubebuilder"
"github.com/AlexsJones/kepler/commands/node"
"github.com/AlexsJones/kepler/commands/palette"
"github.com/AlexsJones/kepler/commands/storage"
"github.com/AlexsJones/kepler/commands/submodules"
"github.com/dimiro1/banner"
)
//Ascii art
const b string = `
{{ .AnsiColor.Green }} _ _ ____ ____ __ ____ ____
{{ .AnsiColor.Green }}( )/ )( ___)( _ \( ) ( ___)( _ \
{{ .AnsiColor.Green }} ) ( )__) )___/ )(__ )__) ) /
{{ .AnsiColor.Green }}(_)\_)(____)(__) (____)(____)(_)\_)
{{ .AnsiColor.Default }} Kepler is a simple program for improving developer workflow
{{ .AnsiColor.Default }} Type 'help' for commands!
{{ .AnsiColor.Default }}
`
func main() {
banner.Init(os.Stdout, true, true, bytes.NewBufferString(b))
cli := cli.NewCli()
//Modules to add ----------------------------
kubebuilder.AddCommands(cli)
node.AddCommands(cli)
github.AddCommands(cli)
submodules.AddCommands(cli)
storage.AddCommands(cli)
palette.AddCommands(cli)
//-------------------------------------------
//Additional commands
github.Login()
//-------------------------------------------
cli.Run()
}