Merge pull request #27597 from hashicorp/pselle/state-cli-docs

Update state mv help docs to use spaces instead of tabs
This commit is contained in:
Pam Selle 2021-01-26 11:47:14 -05:00 committed by GitHub
commit 5682f55908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 11 deletions

View File

@ -1317,6 +1317,13 @@ func TestStateMv_onlyResourceInModule(t *testing.T) {
testStateOutput(t, backups[0], testStateMvOnlyResourceInModule_original)
}
func TestStateMvHelp(t *testing.T) {
c := &StateMvCommand{}
if strings.ContainsRune(c.Help(), '\t') {
t.Fatal("help text contains tab character, which will result in poor formatting")
}
}
const testStateMvOutputOriginal = `
test_instance.baz:
ID = foo