mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
20 lines
275 B
PowerShell
20 lines
275 B
PowerShell
|
|
function New-StringTree()
|
||
|
|
{
|
||
|
|
param(
|
||
|
|
[int]$Spacing
|
||
|
|
)
|
||
|
|
|
||
|
|
if ($Spacing -eq 0) {
|
||
|
|
return '';
|
||
|
|
}
|
||
|
|
|
||
|
|
[string]$spaces = ' \_ ';
|
||
|
|
|
||
|
|
while ($Spacing -gt 1) {
|
||
|
|
$Spacing -= 1;
|
||
|
|
$spaces = ' ' + $spaces;
|
||
|
|
}
|
||
|
|
|
||
|
|
return $spaces;
|
||
|
|
}
|