File tree Expand file tree Collapse file tree 4 files changed +22
-17
lines changed Expand file tree Collapse file tree 4 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -133,15 +133,16 @@ function Erase-TerraformAzureResources {
133
133
}
134
134
135
135
try {
136
- # Validate whether non-azurerm resources are present
137
- terraform state list | Select-String - Pattern " ^((?!data).)*$" | Select-String - Pattern ' \.(azuredevops|azuread)_' | Set-Variable aadOrAzdoResources
138
- if ($aadOrAzdoResources ) {
139
- Write-Warning " The following resources are present in the Terraform state, which are not supported by this function:"
140
- $aadOrAzdoResources
141
- return
136
+ if (! $Force ) {
137
+ # Validate whether non-azurerm resources are present
138
+ terraform state list | Select-String - Pattern " ^((?!data).)*$" | Select-String - Pattern ' \.(azuredevops|azuread)_' | Set-Variable aadOrAzdoResources
139
+ if ($aadOrAzdoResources ) {
140
+ Write-Warning " The following resources are present in the Terraform state, which are not supported by this function:"
141
+ $aadOrAzdoResources
142
+ return
143
+ }
142
144
}
143
145
144
-
145
146
if (! $Repository ) {
146
147
$Repository = Find-RepositoryDirectory
147
148
}
Original file line number Diff line number Diff line change @@ -58,16 +58,6 @@ Get-ChildItem $functionsPath -filter "*.ps1" | ForEach-Object {
58
58
. $_.FullName
59
59
}
60
60
61
- if ($host.Name -eq ' ConsoleHost' )
62
- {
63
- Import-InstalledModule posh- git
64
- # Import-InstalledModule oh-my-posh
65
- # Requires PSReadLine 2.0
66
- # Set-Theme Agnoster
67
- # Set-Theme Paradox
68
- Import-InstalledModule Terminal- Icons
69
- }
70
-
71
61
if ($IsWindows ) {
72
62
$env: HOME ?? = " ${env: HOMEDRIVE}${env: HOMEPATH} "
73
63
$env: SOURCES_DIR = (Join-Path $env: HOME " Source" )
@@ -85,6 +75,8 @@ if ($PSVersionTable.PSEdition -and ($PSVersionTable.PSEdition -eq "Core") -and (
85
75
# Manage PATH environment variable
86
76
[System.Collections.ArrayList ]$pathList = $env: PATH.Split (" :" )
87
77
[System.Collections.ArrayList ]$directories = @ (
78
+ " /bin" ,
79
+ " /usr/bin" ,
88
80
" /usr/local/bin" ,
89
81
" ~/.dotnet/tools" ,
90
82
" /usr/local/share/dotnet"
@@ -144,6 +136,16 @@ if (Test-Path -Path $environmentPath) {
144
136
}
145
137
}
146
138
139
+ if ($host.Name -eq ' ConsoleHost' )
140
+ {
141
+ Import-InstalledModule posh- git
142
+ # Import-InstalledModule oh-my-posh
143
+ # Requires PSReadLine 2.0
144
+ # Set-Theme Agnoster
145
+ # Set-Theme Paradox
146
+ Import-InstalledModule Terminal- Icons
147
+ }
148
+
147
149
if ($printMessages ) {
148
150
149
151
$azModule = Get-Module Az - ListAvailable | Select-Object - First 1
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ tap "z80oolong/tmux"
19
19
cask "azure-data-studio"
20
20
cask "cameracontroller"
21
21
cask "db-browser-for-sqlite"
22
+ cask "beyond-compare"
22
23
cask "docker"
23
24
cask "dotnet-sdk"
24
25
#cask "dropbox"
Original file line number Diff line number Diff line change 10
10
<package id =" azure-functions-core-tools" packageParameters =" /x64:true" />
11
11
<!-- package id="azurepowershell" /-->
12
12
<package id =" azurestorageemulator" />
13
+ <package id =" beyondcompare" />
13
14
<!-- package id="bosh-cli" /-->
14
15
<package id =" cascadiacode" />
15
16
<package id =" cascadiacodepl" />
You can’t perform that action at this time.
0 commit comments