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

20 lines
266 B
PowerShell
Raw Normal View History

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