mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-30 01:05:58 +00:00
Add option to indent debug output
This commit is contained in:
+7
-1
@@ -49,7 +49,13 @@ function abort($msg, [int] $exit_code=1) { write-host $msg -f red; exit $exit_co
|
||||
function error($msg) { write-host "ERROR $msg" -f darkred }
|
||||
function warn($msg) { write-host "WARN $msg" -f darkyellow }
|
||||
function info($msg) { write-host "INFO $msg" -f darkgray }
|
||||
function debug($msg) { write-host "DEBUG $msg" -f darkcyan }
|
||||
function debug($msg, $indent = $false) {
|
||||
if($indent) {
|
||||
write-host " DEBUG $msg" -f darkcyan
|
||||
} else {
|
||||
write-host "DEBUG $msg" -f darkcyan
|
||||
}
|
||||
}
|
||||
function success($msg) { write-host $msg -f darkgreen }
|
||||
|
||||
function filesize($length) {
|
||||
|
||||
Reference in New Issue
Block a user