2013-12-31 21:06:33 +00:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
2016-09-26 15:10:58 +00:00
|
|
|
"strings"
|
2013-12-31 21:06:33 +00:00
|
|
|
"testing"
|
2016-09-26 15:08:47 +00:00
|
|
|
|
2017-03-21 23:36:44 +00:00
|
|
|
"github.com/hashicorp/consul/version"
|
2016-09-26 15:10:58 +00:00
|
|
|
"github.com/mitchellh/cli"
|
2013-12-31 21:06:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2017-03-21 23:36:44 +00:00
|
|
|
version.Version = "0.8.0"
|
2013-12-31 21:06:33 +00:00
|
|
|
}
|
|
|
|
|
2016-09-26 15:10:58 +00:00
|
|
|
func assertNoTabs(t *testing.T, c cli.Command) {
|
|
|
|
if strings.ContainsRune(c.Help(), '\t') {
|
|
|
|
t.Errorf("%#v help output contains tabs", c)
|
|
|
|
}
|
|
|
|
}
|