Skip to content

Commit

Permalink
Add option to indent debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Aug 8, 2018
1 parent 55ce0c0 commit bf54a97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bf54a97

Please sign in to comment.