From 48d8711b8070a396823d77e0309bbe20dca13982 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 24 Sep 2020 16:34:05 +0300 Subject: [PATCH] doctor: limit horizontal divider to just 20 dashes, to avoid wraps --- cmd/tools/vdoctor.v | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vdoctor.v b/cmd/tools/vdoctor.v index a738b3c7a4..23e723ad0f 100644 --- a/cmd/tools/vdoctor.v +++ b/cmd/tools/vdoctor.v @@ -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 {