mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vpm: show the final path where a module is installed, improve color contrast for white on black terminal sessions
This commit is contained in:
parent
992334390c
commit
bb320f19c8
4 changed files with 7 additions and 7 deletions
|
@ -251,13 +251,13 @@ fn vpm_error(msg string, opts ErrorOptions) {
|
|||
}
|
||||
eprintln(term.ecolorize(term.red, 'error: ') + msg)
|
||||
if opts.details.len > 0 && settings.is_verbose {
|
||||
eprint(term.ecolorize(term.blue, 'details: '))
|
||||
eprint(term.ecolorize(term.cyan, 'details: '))
|
||||
padding := ' '.repeat('details: '.len)
|
||||
for i, line in opts.details.split_into_lines() {
|
||||
if i > 0 {
|
||||
eprint(padding)
|
||||
}
|
||||
eprintln(term.ecolorize(term.blue, line))
|
||||
eprintln(term.ecolorize(term.cyan, line))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -265,13 +265,13 @@ fn vpm_error(msg string, opts ErrorOptions) {
|
|||
fn vpm_warn(msg string, opts ErrorOptions) {
|
||||
eprintln(term.ecolorize(term.yellow, 'warning: ') + msg)
|
||||
if opts.details.len > 0 {
|
||||
eprint(term.ecolorize(term.blue, 'details: '))
|
||||
eprint(term.ecolorize(term.cyan, 'details: '))
|
||||
padding := ' '.repeat('details: '.len)
|
||||
for i, line in opts.details.split_into_lines() {
|
||||
if i > 0 {
|
||||
eprint(padding)
|
||||
}
|
||||
eprintln(term.ecolorize(term.blue, line))
|
||||
eprintln(term.ecolorize(term.cyan, line))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue