mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doctor: limit horizontal divider to just 20 dashes, to avoid wraps
This commit is contained in:
parent
3925c3fa20
commit
48d8711b80
@ -4,6 +4,10 @@ import time
|
||||
import v.util
|
||||
import runtime
|
||||
|
||||
const (
|
||||
hdivider = '--------------------'
|
||||
)
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
report_lines []string
|
||||
@ -75,7 +79,7 @@ fn (mut a App) collect_info() {
|
||||
a.line('OS', '$os_kind, $os_details')
|
||||
a.line('Processor', arch_details.join(', '))
|
||||
a.line('CC version', a.cmd(command:'cc --version'))
|
||||
a.println(util.bold(term.h_divider('-')))
|
||||
a.println(util.bold(hdivider))
|
||||
vexe := os.getenv('VEXE')
|
||||
vroot := os.dir(vexe)
|
||||
os.chdir(vroot)
|
||||
@ -93,7 +97,7 @@ fn (mut a App) collect_info() {
|
||||
if vflags != '' {
|
||||
a.line('env VFLAGS', '"$vflags"')
|
||||
}
|
||||
a.println(util.bold(term.h_divider('-')))
|
||||
a.println(util.bold(hdivider))
|
||||
a.line('Git version', a.cmd(command:'git --version'))
|
||||
a.line('Git vroot status', a.cmd(command:'git -C . describe --abbrev=8 --dirty --always --tags'))
|
||||
a.line('.git/config present', os.is_file('.git/config').str())
|
||||
@ -103,7 +107,7 @@ fn (mut a App) collect_info() {
|
||||
}
|
||||
a.report_tcc_version('thirdparty/tcc')
|
||||
//
|
||||
a.println(util.bold(term.h_divider('-')))
|
||||
a.println(util.bold(hdivider))
|
||||
}
|
||||
|
||||
struct CmdConfig {
|
||||
|
Loading…
Reference in New Issue
Block a user