Add missing doc page for version command

pull/2726/head
Kyle Havlovitz 2017-02-09 20:08:25 -05:00
parent aa0d2502f8
commit edbb0ce0b8
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
4 changed files with 28 additions and 2 deletions

View File

@ -2,9 +2,10 @@ package command
import (
"fmt"
"github.com/mitchellh/cli"
"strings"
"testing"
"github.com/mitchellh/cli"
)
func TestJoinCommand_implements(t *testing.T) {

View File

@ -1,8 +1,9 @@
package command
import (
"github.com/mitchellh/cli"
"testing"
"github.com/mitchellh/cli"
)
func TestVersionCommand_implements(t *testing.T) {

View File

@ -0,0 +1,20 @@
---
layout: "docs"
page_title: "Commands: Version"
sidebar_current: "docs-commands-version"
description: |-
The `version` command prints the version of Consul and the protocol versions it understands for speaking to other agents.
---
# Consul Version
Command: `consul version`
The `version` command prints the version of Consul and the protocol versions it understands for speaking to other agents.
```text
$ consul version
Consul v0.7.4
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
```

View File

@ -171,6 +171,10 @@
<a href="/docs/commands/snapshot/save.html">save</a>
</li>
</ul>
</li>
<li<%= sidebar_current("docs-commands-version") %>>
<a href="/docs/commands/version.html">version</a>
</li>
<li<%= sidebar_current("docs-commands-watch") %>>