diff --git a/command/join_test.go b/command/join_test.go index bbbf2023ac..8de8f77417 100644 --- a/command/join_test.go +++ b/command/join_test.go @@ -2,9 +2,10 @@ package command import ( "fmt" - "github.com/mitchellh/cli" "strings" "testing" + + "github.com/mitchellh/cli" ) func TestJoinCommand_implements(t *testing.T) { diff --git a/command/version_test.go b/command/version_test.go index da7aa8608e..2a645690fa 100644 --- a/command/version_test.go +++ b/command/version_test.go @@ -1,8 +1,9 @@ package command import ( - "github.com/mitchellh/cli" "testing" + + "github.com/mitchellh/cli" ) func TestVersionCommand_implements(t *testing.T) { diff --git a/website/source/docs/commands/version.html.markdown b/website/source/docs/commands/version.html.markdown new file mode 100644 index 0000000000..0ed1a44610 --- /dev/null +++ b/website/source/docs/commands/version.html.markdown @@ -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) +``` diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 852be192e0..ba82555577 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -173,6 +173,10 @@ +