This commit is contained in:
lxowalle 2026-03-03 11:34:59 +08:00
parent c3fbf5d6c1
commit d7005b9fdc
2 changed files with 24 additions and 21 deletions

View file

@ -5,9 +5,10 @@ import (
"github.com/rivo/tview"
)
const color_blue = "[#3e5db9]"
const color_red = "[#d54646]"
const banner = "\r\n[::b]" +
const (
color_blue = "[#3e5db9]"
color_red = "[#d54646]"
banner = "\r\n[::b]" +
color_blue + "██████╗ ██╗ ██████╗ ██████╗ " + color_red + " ██████╗██╗ █████╗ ██╗ ██╗\n" +
color_blue + "██╔══██╗██║██╔════╝██╔═══██╗" + color_red + "██╔════╝██║ ██╔══██╗██║ ██║\n" +
color_blue + "██████╔╝██║██║ ██║ ██║" + color_red + "██║ ██║ ███████║██║ █╗ ██║\n" +
@ -15,6 +16,7 @@ const banner = "\r\n[::b]" +
color_blue + "██║ ██║╚██████╗╚██████╔╝" + color_red + "╚██████╗███████╗██║ ██║╚███╔███╔╝\n" +
color_blue + "╚═╝ ╚═╝ ╚═════╝ ╚═════╝ " + color_red + " ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝\n " +
"[:]"
)
func applyStyles() {
tview.Styles.PrimitiveBackgroundColor = tcell.NewRGBColor(12, 13, 22)

View file

@ -48,9 +48,10 @@ func NewPicoclawCommand() *cobra.Command {
return cmd
}
const color_blue = "\033[1;38;2;62;93;185m"
const color_red = "\033[1;38;2;213;70;70m"
const banner = "\r\n" +
const (
color_blue = "\033[1;38;2;62;93;185m"
color_red = "\033[1;38;2;213;70;70m"
banner = "\r\n" +
color_blue + "██████╗ ██╗ ██████╗ ██████╗ " + color_red + " ██████╗██╗ █████╗ ██╗ ██╗\n" +
color_blue + "██╔══██╗██║██╔════╝██╔═══██╗" + color_red + "██╔════╝██║ ██╔══██╗██║ ██║\n" +
color_blue + "██████╔╝██║██║ ██║ ██║" + color_red + "██║ ██║ ███████║██║ █╗ ██║\n" +
@ -58,9 +59,9 @@ const banner = "\r\n" +
color_blue + "██║ ██║╚██████╗╚██████╔╝" + color_red + "╚██████╗███████╗██║ ██║╚███╔███╔╝\n" +
color_blue + "╚═╝ ╚═╝ ╚═════╝ ╚═════╝ " + color_red + " ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝\n " +
"\033[0m\r\n"
)
func main() {
fmt.Printf("%s", banner)
cmd := NewPicoclawCommand()
if err := cmd.Execute(); err != nil {