This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 16952303 [operator] Add dubboctl logo (#510)
16952303 is described below
commit 1695230341d20ac2a2357afbb96895a4196529b7
Author: mfordjody <[email protected]>
AuthorDate: Sat Nov 30 09:03:30 2024 +0800
[operator] Add dubboctl logo (#510)
---
pkg/art/atr.go | 14 ++++++++++++++
pkg/art/dubbo-ascii.txt | 5 +++++
2 files changed, 19 insertions(+)
diff --git a/pkg/art/atr.go b/pkg/art/atr.go
new file mode 100644
index 00000000..61274f39
--- /dev/null
+++ b/pkg/art/atr.go
@@ -0,0 +1,14 @@
+package art
+
+import "github.com/fatih/color"
+
+//go:embed dubbo-ascii.txt
+var dubboASCIIArt string
+
+func DubboArt() string {
+ return dubboASCIIArt
+}
+
+func DubboColoredArt() {
+ return color.New(color.FgHiCyan).Add(color.Bold).Sprint(dubboASCIIArt)
+}
diff --git a/pkg/art/dubbo-ascii.txt b/pkg/art/dubbo-ascii.txt
new file mode 100644
index 00000000..cc81a2c4
--- /dev/null
+++ b/pkg/art/dubbo-ascii.txt
@@ -0,0 +1,5 @@
+ ____ _ _ _ _ _____
+| _ \ | | | || |__ | |__ | _ |
+| | | || | | || |_ \ | |_ \ | | | |
+| |_| || |_| || |_| || |_| || |_| |
+|____/ |_____||____/ |____/ |_____|