Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh committed Dec 27, 2024
1 parent c46a095 commit 1f92bc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/exec/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,14 @@ func processArgsAndFlags(componentType string, inputArgsAndFlags []string) (sche
info.SubCommand = fmt.Sprintf("state %s", additionalArgsAndFlags[1])
twoWordsCommand = true
}

// `terraform providers` commands
// https://developer.hashicorp.com/terraform/cli/commands/providers
if additionalArgsAndFlags[0] == "providers" &&
u.SliceContainsString([]string{"lock", "mirror", "schema"}, additionalArgsAndFlags[1]) {
info.SubCommand = fmt.Sprintf("providers %s", additionalArgsAndFlags[1])
twoWordsCommand = true
}
}

if twoWordsCommand {
Expand Down

0 comments on commit 1f92bc7

Please sign in to comment.