cmd: simplify internal.help => help

pull/4708/head
yuyi 2020-05-04 20:21:32 +08:00 committed by GitHub
parent 8fd69e845f
commit 4794c6a0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ pub fn print_and_exit(topic string) {
println(unknown_topic) println(unknown_topic)
exit(1) exit(1)
} }
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 { content := os.read_file(target_topic) or {
println(unknown_topic) println(unknown_topic)
exit(1) exit(1)

View File

@ -3,7 +3,7 @@
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
module main module main
import internal.help import help
import os import os
import os.cmdline import os.cmdline
import v.table import v.table