mirror of https://github.com/hashicorp/consul
Add missing doc page for version command
parent
aa0d2502f8
commit
edbb0ce0b8
|
@ -2,9 +2,10 @@ package command
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/mitchellh/cli"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mitchellh/cli"
|
||||
)
|
||||
|
||||
func TestJoinCommand_implements(t *testing.T) {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
package command
|
||||
|
||||
import (
|
||||
"github.com/mitchellh/cli"
|
||||
"testing"
|
||||
|
||||
"github.com/mitchellh/cli"
|
||||
)
|
||||
|
||||
func TestVersionCommand_implements(t *testing.T) {
|
||||
|
|
|
@ -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)
|
||||
```
|
|
@ -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") %>>
|
||||
|
|
Loading…
Reference in New Issue