From 4794c6a0e747feccfa8c28316c8f6061e9b48891 Mon Sep 17 00:00:00 2001 From: yuyi Date: Mon, 4 May 2020 20:21:32 +0800 Subject: [PATCH] cmd: simplify internal.help => help --- cmd/v/{internal => }/help/bin2v.txt | 0 cmd/v/{internal => }/help/build-c.txt | 0 cmd/v/{internal => }/help/build.txt | 0 cmd/v/{internal => }/help/default.txt | 0 cmd/v/{internal => }/help/fmt.txt | 0 cmd/v/{internal => }/help/help.v | 2 +- cmd/v/{internal => }/help/install.txt | 0 cmd/v/{internal => }/help/other.txt | 0 cmd/v/{internal => }/help/remove.txt | 0 cmd/v/{internal => }/help/run.txt | 0 cmd/v/{internal => }/help/search.txt | 0 cmd/v/{internal => }/help/test.txt | 0 cmd/v/{internal => }/help/update.txt | 0 cmd/v/{internal => }/help/vpm.txt | 0 cmd/v/v.v | 2 +- 15 files changed, 2 insertions(+), 2 deletions(-) rename cmd/v/{internal => }/help/bin2v.txt (100%) rename cmd/v/{internal => }/help/build-c.txt (100%) rename cmd/v/{internal => }/help/build.txt (100%) rename cmd/v/{internal => }/help/default.txt (100%) rename cmd/v/{internal => }/help/fmt.txt (100%) rename cmd/v/{internal => }/help/help.v (87%) rename cmd/v/{internal => }/help/install.txt (100%) rename cmd/v/{internal => }/help/other.txt (100%) rename cmd/v/{internal => }/help/remove.txt (100%) rename cmd/v/{internal => }/help/run.txt (100%) rename cmd/v/{internal => }/help/search.txt (100%) rename cmd/v/{internal => }/help/test.txt (100%) rename cmd/v/{internal => }/help/update.txt (100%) rename cmd/v/{internal => }/help/vpm.txt (100%) diff --git a/cmd/v/internal/help/bin2v.txt b/cmd/v/help/bin2v.txt similarity index 100% rename from cmd/v/internal/help/bin2v.txt rename to cmd/v/help/bin2v.txt diff --git a/cmd/v/internal/help/build-c.txt b/cmd/v/help/build-c.txt similarity index 100% rename from cmd/v/internal/help/build-c.txt rename to cmd/v/help/build-c.txt diff --git a/cmd/v/internal/help/build.txt b/cmd/v/help/build.txt similarity index 100% rename from cmd/v/internal/help/build.txt rename to cmd/v/help/build.txt diff --git a/cmd/v/internal/help/default.txt b/cmd/v/help/default.txt similarity index 100% rename from cmd/v/internal/help/default.txt rename to cmd/v/help/default.txt diff --git a/cmd/v/internal/help/fmt.txt b/cmd/v/help/fmt.txt similarity index 100% rename from cmd/v/internal/help/fmt.txt rename to cmd/v/help/fmt.txt diff --git a/cmd/v/internal/help/help.v b/cmd/v/help/help.v similarity index 87% rename from cmd/v/internal/help/help.v rename to cmd/v/help/help.v index 2cba8ec352..db64da5734 100644 --- a/cmd/v/internal/help/help.v +++ b/cmd/v/help/help.v @@ -18,7 +18,7 @@ pub fn print_and_exit(topic string) { println(unknown_topic) 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 { println(unknown_topic) exit(1) diff --git a/cmd/v/internal/help/install.txt b/cmd/v/help/install.txt similarity index 100% rename from cmd/v/internal/help/install.txt rename to cmd/v/help/install.txt diff --git a/cmd/v/internal/help/other.txt b/cmd/v/help/other.txt similarity index 100% rename from cmd/v/internal/help/other.txt rename to cmd/v/help/other.txt diff --git a/cmd/v/internal/help/remove.txt b/cmd/v/help/remove.txt similarity index 100% rename from cmd/v/internal/help/remove.txt rename to cmd/v/help/remove.txt diff --git a/cmd/v/internal/help/run.txt b/cmd/v/help/run.txt similarity index 100% rename from cmd/v/internal/help/run.txt rename to cmd/v/help/run.txt diff --git a/cmd/v/internal/help/search.txt b/cmd/v/help/search.txt similarity index 100% rename from cmd/v/internal/help/search.txt rename to cmd/v/help/search.txt diff --git a/cmd/v/internal/help/test.txt b/cmd/v/help/test.txt similarity index 100% rename from cmd/v/internal/help/test.txt rename to cmd/v/help/test.txt diff --git a/cmd/v/internal/help/update.txt b/cmd/v/help/update.txt similarity index 100% rename from cmd/v/internal/help/update.txt rename to cmd/v/help/update.txt diff --git a/cmd/v/internal/help/vpm.txt b/cmd/v/help/vpm.txt similarity index 100% rename from cmd/v/internal/help/vpm.txt rename to cmd/v/help/vpm.txt diff --git a/cmd/v/v.v b/cmd/v/v.v index 53f775a10d..386c7f19c8 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. module main -import internal.help +import help import os import os.cmdline import v.table