1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: add support for VDIFF_TOOL, detect more diffing tools (#5857)

This commit is contained in:
Ryan Willis
2020-07-17 04:03:07 -07:00
committed by GitHub
parent f6947d111b
commit e804ba5294
8 changed files with 144 additions and 87 deletions

View File

@ -5,7 +5,7 @@ import os
pub fn show_topic(topic string) {
vexe := os.real_path(os.getenv('VEXE'))
vroot := os.dir(vexe)
target_topic := os.join_path(vroot,'cmd','v','internal','help','${topic}.txt')
target_topic := os.join_path(vroot, 'cmd', 'v', 'help', '${topic}.txt')
content := os.read_file(target_topic) or {
eprintln('Unknown topic: $topic')
exit(1)