summaryrefslogtreecommitdiff
path: root/internal/version
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-08-21 14:54:24 +0300
committerPaul Buetow <paul@buetow.org>2021-08-21 14:54:24 +0300
commitc2522ffb59514443816a96386c16bb7527cbe57c (patch)
tree6e6fb065e14b92e362f66103cfed2cbdc51ceccf /internal/version
parent70cc67e78278fcf103acc57dfe513bd6f5f258c9 (diff)
read files bytewise for more control of whats happening - change transport protocol for more control over newlines
Diffstat (limited to 'internal/version')
-rw-r--r--internal/version/version.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/version/version.go b/internal/version/version.go
index 3e683bd..7f07c83 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -6,6 +6,7 @@ import (
"github.com/mimecast/dtail/internal/color"
"github.com/mimecast/dtail/internal/config"
+ "github.com/mimecast/dtail/internal/protocol"
)
const (
@@ -13,15 +14,13 @@ const (
Name string = "DTail"
// Version of DTail.
Version string = "3.2.0"
- // ProtocolCompat -ibility version.
- ProtocolCompat string = "3"
// Additional information for DTail
Additional string = "Have a lot of fun!"
)
// String representation of the DTail version.
func String() string {
- return fmt.Sprintf("%s %v Protocol %s %s", Name, Version, ProtocolCompat, Additional)
+ return fmt.Sprintf("%s %v Protocol %s %s", Name, Version, protocol.ProtocolCompat, Additional)
}
// PaintedString is a prettier string representation of the DTail version.
@@ -36,7 +35,7 @@ func PaintedString() string {
version := color.PaintWithAttr(fmt.Sprintf(" %s ", Version),
color.FgBlue, color.BgYellow, color.AttrBold)
- protocol := color.Paint(fmt.Sprintf(" Protocol %s ", ProtocolCompat),
+ protocol := color.Paint(fmt.Sprintf(" Protocol %s ", protocol.ProtocolCompat),
color.FgBlack, color.BgGreen)
additional := color.PaintWithAttr(fmt.Sprintf(" %s ", Additional),