summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go53
1 files changed, 53 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go b/raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go
new file mode 100644
index 0000000..c0b50e6
--- /dev/null
+++ b/raveos-hyprland-theme/theme-data/DankMaterialShell/core/cmd/dms/ui.go
@@ -0,0 +1,53 @@
+package main
+
+import (
+ "fmt"
+
+ "github.com/AvengeMedia/DankMaterialShell/core/internal/tui"
+ "github.com/charmbracelet/lipgloss"
+)
+
+func printASCII() {
+ fmt.Print(getThemedASCII())
+}
+
+func getThemedASCII() string {
+ theme := tui.TerminalTheme()
+
+ logo := `
+██████╗ █████╗ ███╗ ██╗██╗ ██╗
+██╔══██╗██╔══██╗████╗ ██║██║ ██╔╝
+██║ ██║███████║██╔██╗ ██║█████╔╝
+██║ ██║██╔══██║██║╚██╗██║██╔═██╗
+██████╔╝██║ ██║██║ ╚████║██║ ██╗
+╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝`
+
+ style := lipgloss.NewStyle().
+ Foreground(lipgloss.Color(theme.Primary)).
+ Bold(true)
+
+ return style.Render(logo) + "\n"
+}
+
+func getHelpTemplate() string {
+ return getThemedASCII() + `
+{{.Long}}
+
+Usage:
+ {{.UseLine}}{{if .HasAvailableSubCommands}}
+
+Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
+ {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
+
+Flags:
+{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}}
+
+Global Flags:
+{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}}
+
+Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}}
+ {{rpad .Name .NamePadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}}
+
+Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}}
+`
+}