utility/debug.ps1
function Debug-Args { for ($i = 0; $i -lt $args.Length; $i++) { $v = $args[$i] Write-Output "[$i]: ($($v.GetType().FullName))" $v } } PwshRun-RegisterTasks "debug" @( @{ Alias = "args"; Command = "Debug-Args"; Description = "Lists all the arguments given to the task with type information"; Example = "`$RUNNER args [a1] [a2]"; } ) |