mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
colors (#124)
This commit is contained in:
parent
5a0c109937
commit
7f5321f416
@ -21,11 +21,11 @@ func mustGetAdminAuth() runtime.ClientAuthInfoWriter {
|
||||
return httptransport.APIKeyAuth("X-TOKEN", "header", adminToken)
|
||||
}
|
||||
|
||||
var errorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#D90166")).Background(lipgloss.Color("0"))
|
||||
var errorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#D90166"))
|
||||
var errorLabel = errorStyle.Render("ERROR")
|
||||
var warningStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFA500")).Background(lipgloss.Color("0"))
|
||||
var warningStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFA500"))
|
||||
var warningLabel = warningStyle.Render("WARNING")
|
||||
var codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FFFF")).Background(lipgloss.Color("0"))
|
||||
var codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FFFF"))
|
||||
|
||||
func showError(msg string, err error) {
|
||||
if err != nil {
|
||||
|
@ -26,6 +26,6 @@ func newVersionCommand() *versionCommand {
|
||||
}
|
||||
|
||||
func (cmd *versionCommand) run(_ *cobra.Command, _ []string) {
|
||||
zrokStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#FF0080"))
|
||||
zrokStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#FF00EE"))
|
||||
fmt.Println(zrokStyle.Render(" _ \n _____ __ ___ | | __\n|_ / '__/ _ \\| |/ /\n / /| | | (_) | < \n/___|_| \\___/|_|\\_\\") + "\n\n" + codeStyle.Render(build.String()) + "\n")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user