diff --git a/prompt/prompt.go b/prompt/prompt.go index 12822ec..2950656 100644 --- a/prompt/prompt.go +++ b/prompt/prompt.go @@ -176,6 +176,8 @@ func (p *Prompt) StartInteractive() error { } p.receiveMessage(args[1], body) + case line == "version": // Version + fmt.Printf("Server version: %s\n", p.server.Version()) case line == "help": // Help fmt.Println("Usage: [args]") fmt.Println("Where is specified, '*' can be provided as a wildcard.") @@ -185,6 +187,7 @@ func (p *Prompt) StartInteractive() error { fmt.Println("\tls list messages for conversation") fmt.Println("\tmark [-r] mark conversation as unread/[r]ead") fmt.Println("\trecv receive a message") + fmt.Println("\tversion print server version") fmt.Println("\thelp show this help") fmt.Println("\texit exits the program")