diff --git a/VERSION b/VERSION index f90b1af..0bee604 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.2 +2.3.3 diff --git a/client.go b/client.go index 4b31efb..7b65044 100644 --- a/client.go +++ b/client.go @@ -345,6 +345,9 @@ func (c *client) simpleCommand(action string) { c.search("", "", "?") case "HELP", "?": go c.Visit(helplocation) + case "VERSION": + c.SetMessage("Bombadillo version: " + version, false) + c.DrawMessage() default: c.SetMessage(syntaxErrorMessage(action), true) c.DrawMessage() diff --git a/cmdparse/lexer.go b/cmdparse/lexer.go index 8b882c3..c17eb4f 100644 --- a/cmdparse/lexer.go +++ b/cmdparse/lexer.go @@ -72,7 +72,7 @@ func (s *scanner) scanText() Token { "S", "SET", "R", "RELOAD", "SEARCH", "Q", "QUIT", "B", "BOOKMARKS", "H", "HOME", "?", "HELP", "C", "CHECK", - "P", "PURGE": + "P", "PURGE", "VERSION": return Token{Action, capInput} } diff --git a/help.go b/help.go index a9516f3..c927cf7 100644 --- a/help.go +++ b/help.go @@ -25,4 +25,5 @@ var ERRS = map[string]string{ "WRITE": "`write [target]`", "?": "`?`", "HELP": "`help`", + "VERSION": "`version`", }