-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathascii.go
More file actions
58 lines (49 loc) · 2.02 KB
/
Copy pathascii.go
File metadata and controls
58 lines (49 loc) · 2.02 KB
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
49
50
51
52
53
54
55
56
57
58
//go:build !windows
// +build !windows
package main
import (
"fmt"
)
var asciiLines = []string{
` ▄▄ `,
` ▀▀ ██ ██ `,
`▄████ ▄███▄ ███▄███▄ ███▄███▄ ██ ▀██▀▀ ▄████ ▄███▄ ▄████ `,
`██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ `,
`▀████ ▀███▀ ██ ██ ██ ██ ██ ██ ██▄ ██ ▀████ ▀███▀ ▀████ `,
` ██ `,
` ▀▀▀ `,
}
func printAsciiArt() {
yellow := "\033[33m"
bold := "\033[1m"
dim := "\033[90m"
reset := "\033[0m"
margin := " "
for _, line := range asciiLines {
fmt.Printf("%s%s%s\n", yellow, margin, line+reset)
}
fmt.Println()
fmt.Println(" " + bold + yellow + "commitdog" + reset + dim + " v" + version + reset)
fmt.Println(" " + dim + "─────────────────────────────────" + reset)
fmt.Println(dim + " git workflow, simplified." + reset)
fmt.Println()
cmds := [][]string{
{"commitdog", "stage · commit · push"},
{"commitdog init", "create repo · first push"},
{"commitdog branch", "branch management"},
{"commitdog switch", "switch branches fast"},
{"commitdog merge", "merge with diff preview"},
{"commitdog pr", "create · review · merge PRs"},
{"commitdog sync", "pull · rebase · push"},
{"commitdog stash", "save work in progress"},
{"commitdog revert", "undo a commit"},
{"commitdog release", "version bump · build · publish"},
{"commitdog setup", "configure github token"},
}
for _, c := range cmds {
fmt.Printf(" %s%-22s%s %s\n", yellow, c[0], reset, c[1])
}
fmt.Println()
fmt.Println(dim + " https://commitdog.aysdog.com" + reset)
fmt.Println()
}