From c128865c4c7411c29a59fca9a3a2f95537686d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Mon, 20 Jan 2020 18:41:05 +0000 Subject: Move commands to cmd/ and move internal dependencies to internal/ --- version/version.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 version/version.go (limited to 'version') diff --git a/version/version.go b/version/version.go deleted file mode 100644 index 3c3b5e9..0000000 --- a/version/version.go +++ /dev/null @@ -1,32 +0,0 @@ -package version - -import ( - "dtail/color" - "fmt" -) - -// Name of DTail. -const Name = "DTail" - -// Version of DTail. -const Version = "1.0.0" - -// Additional information. -const Additional = "" - -// String representation of the DTail version. -func String() string { - return fmt.Sprintf("%s v%v %s", Name, Version, Additional) -} - -// PaintedString is a prettier string representation of the DTail version. -func PaintedString() string { - if !color.Colored { - return String() - } - name := color.Paint(color.Yellow, Name) - version := color.Paint(color.Blue, Version) - descr := color.Paint(color.Green, Additional) - - return fmt.Sprintf("%s %v %s", name, version, descr) -} -- cgit v1.2.3