doctor: use just a.println('') instead of a horizontal divider

pull/6469/head
Delyan Angelov 2020-09-24 16:36:04 +03:00
parent 48d8711b80
commit d91594dc6b
1 changed files with 3 additions and 7 deletions

View File

@ -4,10 +4,6 @@ import time
import v.util
import runtime
const (
hdivider = '--------------------'
)
struct App {
mut:
report_lines []string
@ -79,7 +75,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(hdivider))
a.println('')
vexe := os.getenv('VEXE')
vroot := os.dir(vexe)
os.chdir(vroot)
@ -97,7 +93,7 @@ fn (mut a App) collect_info() {
if vflags != '' {
a.line('env VFLAGS', '"$vflags"')
}
a.println(util.bold(hdivider))
a.println('')
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())
@ -107,7 +103,7 @@ fn (mut a App) collect_info() {
}
a.report_tcc_version('thirdparty/tcc')
//
a.println(util.bold(hdivider))
a.println('')
}
struct CmdConfig {