icinga-powershell-framework/lib/core/tools/Add-IcingaWhiteSpaceToString.psm1

17 lines
277 B
PowerShell
Raw Normal View History

2021-07-16 15:38:08 -04:00
function Add-IcingaWhiteSpaceToString()
{
param (
[string]$Text = '',
[int]$Length = 0
);
[int]$LengthOffset = $Length - $Text.Length;
while ($LengthOffset -gt 0) {
$Text += ' ';
$LengthOffset -= 1;
}
return $Text;
}