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