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
|
|
|
|
2016-09-26 15:10:58 +00:00
|
|
|
"github.com/mitchellh/cli"
|
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)
|
|
|
|
}
|
|
|
|
}
|