icinga-powershell-framework/lib/core/tools/New-StringTree.psm1

20 lines
275 B
PowerShell
Raw Normal View History

2019-07-19 13:35:08 -04:00
function New-StringTree()
{
param(
[int]$Spacing
)
if ($Spacing -eq 0) {
return '';
}
[string]$spaces = ' \_ ';
while ($Spacing -gt 1) {
$Spacing -= 1;
$spaces = ' ' + $spaces;
}
return $spaces;
}