Skip to content

Commit

Permalink
doctor: tweak output for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Oct 13, 2024
1 parent f3d184b commit a28d79a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/doctor.v
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ See https://stackoverflow.com/a/61176718/1904615 for more help.\n'
Version ${exe_version} ${exe_git_hash}
Path "${exe_dir}"
Base files "${default_base_files_path}"
os.args: "${os.args}"\n')
os.args "${os.args}"\n')

println('Extra\n\tCommands')
$if vab_allow_extra_commands ? {
extra_commands := extra.commands()
println('\t\tAllowed: true
println('\t\tAllowed true
Installed ${extra.installed()}
Data path "${extra.data_path}"')
for _, extra_command in extra_commands {
println('\t\t${extra_command.alias} ${extra_command.source}:${extra_command.unit} ${extra_command.hash}')
}
} $else {
println('\t\tAllowed: false')
println('\t\tAllowed false')
}

// Shell environment
Expand Down Expand Up @@ -176,7 +176,7 @@ See https://stackoverflow.com/a/61176718/1904615 for more help.\n'
'doctor',
]
v_res := os.execute(v_cmd.join(' '))
out_lines := v_res.output.split('\n')
out_lines := v_res.output.split('\n').filter(it != '')
for line in out_lines {
println('\t${line}')
}
Expand Down

0 comments on commit a28d79a

Please sign in to comment.