From 85e9300a78ca158504e7073261f172a5e55bd58a Mon Sep 17 00:00:00 2001 From: shadowninja55 <49539636+shadowninja55@users.noreply.github.com> Date: Sat, 12 Jun 2021 08:10:30 -0400 Subject: [PATCH] v help: add all tool commands to `v help ` (#10419) --- cmd/v/help/doctor.txt | 3 +++ cmd/v/help/list.txt | 3 +++ cmd/v/help/outdated.txt | 3 +++ cmd/v/help/repl.txt | 3 +++ cmd/v/help/self.txt | 5 +++++ cmd/v/help/show.txt | 3 +++ cmd/v/help/symlink.txt | 5 +++++ cmd/v/help/tracev.txt | 3 +++ cmd/v/help/up.txt | 7 +++++++ cmd/v/help/update.txt | 2 +- cmd/v/help/upgrade.txt | 7 +++++++ cmd/v/help/version.txt | 3 +++ 12 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 cmd/v/help/doctor.txt create mode 100644 cmd/v/help/list.txt create mode 100644 cmd/v/help/outdated.txt create mode 100644 cmd/v/help/repl.txt create mode 100644 cmd/v/help/self.txt create mode 100644 cmd/v/help/show.txt create mode 100644 cmd/v/help/symlink.txt create mode 100644 cmd/v/help/tracev.txt create mode 100644 cmd/v/help/up.txt create mode 100644 cmd/v/help/upgrade.txt create mode 100644 cmd/v/help/version.txt diff --git a/cmd/v/help/doctor.txt b/cmd/v/help/doctor.txt new file mode 100644 index 0000000000..05ed7ec73f --- /dev/null +++ b/cmd/v/help/doctor.txt @@ -0,0 +1,3 @@ +Usage: v doctor + +Display some useful info about your system necessary for bug reports. diff --git a/cmd/v/help/list.txt b/cmd/v/help/list.txt new file mode 100644 index 0000000000..33e28f1717 --- /dev/null +++ b/cmd/v/help/list.txt @@ -0,0 +1,3 @@ +Usage: v list + +List all installed modules. diff --git a/cmd/v/help/outdated.txt b/cmd/v/help/outdated.txt new file mode 100644 index 0000000000..82e7ce42bf --- /dev/null +++ b/cmd/v/help/outdated.txt @@ -0,0 +1,3 @@ +Usage: v outdated + +List all installed modules that need updates. diff --git a/cmd/v/help/repl.txt b/cmd/v/help/repl.txt new file mode 100644 index 0000000000..08abb6a30d --- /dev/null +++ b/cmd/v/help/repl.txt @@ -0,0 +1,3 @@ +Usage: v repl + +This command runs the V REPL. diff --git a/cmd/v/help/self.txt b/cmd/v/help/self.txt new file mode 100644 index 0000000000..3e0ce494cb --- /dev/null +++ b/cmd/v/help/self.txt @@ -0,0 +1,5 @@ +Usage: v self + +Rebuild V with the passed options. + +Options: All other options are passed to the build command. (e.g. -prod) diff --git a/cmd/v/help/show.txt b/cmd/v/help/show.txt new file mode 100644 index 0000000000..c2c0fffc91 --- /dev/null +++ b/cmd/v/help/show.txt @@ -0,0 +1,3 @@ +Usage: v show + +Display information about a module on vpm. diff --git a/cmd/v/help/symlink.txt b/cmd/v/help/symlink.txt new file mode 100644 index 0000000000..105900316a --- /dev/null +++ b/cmd/v/help/symlink.txt @@ -0,0 +1,5 @@ +Usage: v symlink + +This command adds a symlink for the V compiler executable. + +Note that on Unix systems this command requires write permissions to /usr/local/bin to work. diff --git a/cmd/v/help/tracev.txt b/cmd/v/help/tracev.txt new file mode 100644 index 0000000000..2d4b5a57da --- /dev/null +++ b/cmd/v/help/tracev.txt @@ -0,0 +1,3 @@ +Usage: v tracev + +Produce a tracing version of the V compiler. diff --git a/cmd/v/help/up.txt b/cmd/v/help/up.txt new file mode 100644 index 0000000000..7ae9447130 --- /dev/null +++ b/cmd/v/help/up.txt @@ -0,0 +1,7 @@ +Usage: v up + +Update the V compiler to the latest version from https://github.com/vlang/v. + +Options: + -v - Print more details about the update. + -prod - Compile the updated V with the -prod flag. diff --git a/cmd/v/help/update.txt b/cmd/v/help/update.txt index d5bb745010..4fa9a918ed 100644 --- a/cmd/v/help/update.txt +++ b/cmd/v/help/update.txt @@ -6,5 +6,5 @@ Usage: Options: -help - Show usage info. - -v - Print more details about the performed operation. + -v - Print more details about the update. -server-url - When doing network operations, use this vpm server. Can be given multiple times. diff --git a/cmd/v/help/upgrade.txt b/cmd/v/help/upgrade.txt new file mode 100644 index 0000000000..7aa62fb6bb --- /dev/null +++ b/cmd/v/help/upgrade.txt @@ -0,0 +1,7 @@ +Usage: v upgrade + +Upgrade all outdated modules. + +Options: + -help - Show usage info. + -v - Print more details about the upgrade. diff --git a/cmd/v/help/version.txt b/cmd/v/help/version.txt new file mode 100644 index 0000000000..7c1a4bd61e --- /dev/null +++ b/cmd/v/help/version.txt @@ -0,0 +1,3 @@ +Usage: v version + +Print the version of V installed.