Skip to content

Commit

Permalink
🐛 resolve terraform aliases
Browse files Browse the repository at this point in the history
closes #2
  • Loading branch information
ptavares committed Feb 10, 2024
1 parent 725ede9 commit e5eb99e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform-tools/terraform-tools-aliases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Define all lower levels aliases
# =========================================================

function tf { terraform }
Set-Alias -Name tf -Value terraform
function tff { tf fmt }
function tfv { tf validate }
function tfi { tf init }
Expand Down
5 changes: 5 additions & 0 deletions terraform-tools/terraform-tools-utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ function Get-TerraformAliases {
}
}

$aliases = ,[PSCustomObject]@{
Name = " $esc[$($nameColor)mtf$esc[0m"
Definition = " $esc[$($descriptionColor)mterraform$esc[0m"
} + $aliases

Write-Output ""
Write-Output "============================================="
Write-Output "= Aliases from terraform-tools Module ="
Expand Down

0 comments on commit e5eb99e

Please sign in to comment.