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

v: move cmd/v/help/ to vlib/v/help, to simplify the interaction between module lookup & v recompilation (#16867)

This commit is contained in:
Delyan Angelov
2023-01-04 14:01:05 +02:00
committed by GitHub
parent b8571c964d
commit f9e8a91cd0
45 changed files with 3 additions and 3 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', 'help', '${topic}.txt')
target_topic := os.join_path(vroot, 'vlib', 'v', 'help', '${topic}.txt')
content := os.read_file(target_topic) or {
eprintln('Unknown topic: ${topic}')
exit(1)