Skip to content

Commit

Permalink
Refactoring logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroc0d3 committed Nov 1, 2023
1 parent b5781d5 commit 0de1816
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 6 additions & 4 deletions src/features/menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ import (
)

const (
Logo = `
_ ___ _ _
Logo = ` _ ___ _ _
| | _( _ ) ___ ___ ___ _ __ | |_ _____ _| |_
| |/ / _ \/ __|_____ / __/ _ \| '_ \| __/ _ \ \/ / __|
| < (_) \__ \_____| (_| (_) | | | | || __/> <| |_
|_|\_\___/|___/ \___\___/|_| |_|\__\___/_/\_\\__|
`
------------------------------------------------------`
Author = `
DevOps Corner Indonesia (devopscorner.id)
https://github.com/devopscorner/k8s-context
Apache v2.0 License`
AppName = "K8S-CONTEXT (K8C)"
VERSION = "v1.1.9"
)
Expand Down
4 changes: 3 additions & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import (

func main() {
logoStyle := termenv.Style{}.Foreground(termenv.ANSIGreen)
authorStyle := termenv.Style{}.Foreground(termenv.ANSIBlue)
appNameStyle := termenv.Style{}.Foreground(termenv.ANSIWhite).Bold()

fmt.Println(logoStyle.Styled(features.Logo))
fmt.Print(logoStyle.Styled(features.Logo))
fmt.Println(authorStyle.Styled(features.Author))
fmt.Println("===================================")
fmt.Println("[[ ", appNameStyle.Styled(features.AppName), " ]] -", features.VERSION)
fmt.Println("===================================")
Expand Down
14 changes: 9 additions & 5 deletions src/singleton/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ import (
)

const (
Logo = `
_ ___ _ _
Logo = ` _ ___ _ _
| | _( _ ) ___ ___ ___ _ __ | |_ _____ _| |_
| |/ / _ \/ __|_____ / __/ _ \| '_ \| __/ _ \ \/ / __|
| < (_) \__ \_____| (_| (_) | | | | || __/> <| |_
|_|\_\___/|___/ \___\___/|_| |_|\__\___/_/\_\\__|
`
------------------------------------------------------`
Author = `
DevOps Corner Indonesia (devopscorner.id)
https://github.com/devopscorner/k8s-context
Apache v2.0 License`
AppName = "K8S-CONTEXT (K8C)"
VERSION = "v1.1.9"
)
Expand All @@ -62,9 +64,11 @@ type KubeConfig struct {

func main() {
logoStyle := termenv.Style{}.Foreground(termenv.ANSIGreen)
authorStyle := termenv.Style{}.Foreground(termenv.ANSIBlue)
appNameStyle := termenv.Style{}.Foreground(termenv.ANSIWhite).Bold()

fmt.Println(logoStyle.Styled(Logo))
fmt.Print(logoStyle.Styled(Logo))
fmt.Println(authorStyle.Styled(Author))
fmt.Println("===================================")
fmt.Println("[[ ", appNameStyle.Styled(AppName), " ]] -", VERSION)
fmt.Println("===================================")
Expand Down

0 comments on commit 0de1816

Please sign in to comment.