Skip to content

Commit 0de1816

Browse files
committed
Refactoring logo
1 parent b5781d5 commit 0de1816

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

src/features/menus.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ import (
2323
)
2424

2525
const (
26-
Logo = `
27-
_ ___ _ _
26+
Logo = ` _ ___ _ _
2827
| | _( _ ) ___ ___ ___ _ __ | |_ _____ _| |_
2928
| |/ / _ \/ __|_____ / __/ _ \| '_ \| __/ _ \ \/ / __|
3029
| < (_) \__ \_____| (_| (_) | | | | || __/> <| |_
3130
|_|\_\___/|___/ \___\___/|_| |_|\__\___/_/\_\\__|
32-
33-
`
31+
------------------------------------------------------`
32+
Author = `
33+
DevOps Corner Indonesia (devopscorner.id)
34+
https://github.com/devopscorner/k8s-context
35+
Apache v2.0 License`
3436
AppName = "K8S-CONTEXT (K8C)"
3537
VERSION = "v1.1.9"
3638
)

src/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import (
99

1010
func main() {
1111
logoStyle := termenv.Style{}.Foreground(termenv.ANSIGreen)
12+
authorStyle := termenv.Style{}.Foreground(termenv.ANSIBlue)
1213
appNameStyle := termenv.Style{}.Foreground(termenv.ANSIWhite).Bold()
1314

14-
fmt.Println(logoStyle.Styled(features.Logo))
15+
fmt.Print(logoStyle.Styled(features.Logo))
16+
fmt.Println(authorStyle.Styled(features.Author))
1517
fmt.Println("===================================")
1618
fmt.Println("[[ ", appNameStyle.Styled(features.AppName), " ]] -", features.VERSION)
1719
fmt.Println("===================================")

src/singleton/main.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ import (
3434
)
3535

3636
const (
37-
Logo = `
38-
_ ___ _ _
37+
Logo = ` _ ___ _ _
3938
| | _( _ ) ___ ___ ___ _ __ | |_ _____ _| |_
4039
| |/ / _ \/ __|_____ / __/ _ \| '_ \| __/ _ \ \/ / __|
4140
| < (_) \__ \_____| (_| (_) | | | | || __/> <| |_
4241
|_|\_\___/|___/ \___\___/|_| |_|\__\___/_/\_\\__|
43-
44-
`
42+
------------------------------------------------------`
43+
Author = `
44+
DevOps Corner Indonesia (devopscorner.id)
45+
https://github.com/devopscorner/k8s-context
46+
Apache v2.0 License`
4547
AppName = "K8S-CONTEXT (K8C)"
4648
VERSION = "v1.1.9"
4749
)
@@ -62,9 +64,11 @@ type KubeConfig struct {
6264

6365
func main() {
6466
logoStyle := termenv.Style{}.Foreground(termenv.ANSIGreen)
67+
authorStyle := termenv.Style{}.Foreground(termenv.ANSIBlue)
6568
appNameStyle := termenv.Style{}.Foreground(termenv.ANSIWhite).Bold()
6669

67-
fmt.Println(logoStyle.Styled(Logo))
70+
fmt.Print(logoStyle.Styled(Logo))
71+
fmt.Println(authorStyle.Styled(Author))
6872
fmt.Println("===================================")
6973
fmt.Println("[[ ", appNameStyle.Styled(AppName), " ]] -", VERSION)
7074
fmt.Println("===================================")

0 commit comments

Comments
 (0)