mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 19:50:36 +00:00
Add missing doc page for version command
This commit is contained in:
parent
aa0d2502f8
commit
edbb0ce0b8
@ -2,9 +2,10 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mitchellh/cli"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/mitchellh/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestJoinCommand_implements(t *testing.T) {
|
func TestJoinCommand_implements(t *testing.T) {
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mitchellh/cli"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/mitchellh/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestVersionCommand_implements(t *testing.T) {
|
func TestVersionCommand_implements(t *testing.T) {
|
||||||
|
20
website/source/docs/commands/version.html.markdown
Normal file
20
website/source/docs/commands/version.html.markdown
Normal 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)
|
||||||
|
```
|
@ -171,6 +171,10 @@
|
|||||||
<a href="/docs/commands/snapshot/save.html">save</a>
|
<a href="/docs/commands/snapshot/save.html">save</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li<%= sidebar_current("docs-commands-version") %>>
|
||||||
|
<a href="/docs/commands/version.html">version</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-commands-watch") %>>
|
<li<%= sidebar_current("docs-commands-watch") %>>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user