mirror of
https://github.com/status-im/consul.git
synced 2025-01-18 17:52:17 +00:00
3ba0b03cd8
Also add JSON format support # Conflicts: # website/pages/docs/commands/version.mdx
16 lines
235 B
Go
16 lines
235 B
Go
package version
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/mitchellh/cli"
|
|
)
|
|
|
|
func TestVersionCommand_noTabs(t *testing.T) {
|
|
t.Parallel()
|
|
if strings.ContainsRune(New(cli.NewMockUi()).Help(), '\t') {
|
|
t.Fatal("help has tabs")
|
|
}
|
|
}
|