Skip to content

Commit c45fade

Browse files
author
Matthew Fisher
committed
feat(deisctl): colorize deisctl
1 parent 5363a94 commit c45fade

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

deisctl.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ func setGlobalFlags(args map[string]interface{}) {
4141
}
4242

4343
func main() {
44-
usage := `Deis Control Utility
44+
circle := "\033[31m●"
45+
square := "\033[32m■"
46+
triangle := "\033[34m▴"
47+
reset := "\033[0m"
48+
title := reset + "Deis Control Utility"
4549

50+
deisctlMotd := fmt.Sprintf("%s %s %s\n%s %s %s %s\n%s %s %s%s\n",
51+
circle, triangle, square,
52+
square, circle, triangle, title,
53+
triangle, square, circle, reset)
54+
usage := deisctlMotd + `
4655
Usage:
4756
deisctl <command> [<target>...] [options]
4857

0 commit comments

Comments
 (0)