v help: add all tool commands to `v help <command>` (#10419)

pull/10426/head
shadowninja55 2021-06-12 08:10:30 -04:00 committed by GitHub
parent 635f045b14
commit 85e9300a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,3 @@
Usage: v doctor
Display some useful info about your system necessary for bug reports.

View File

@ -0,0 +1,3 @@
Usage: v list
List all installed modules.

View File

@ -0,0 +1,3 @@
Usage: v outdated
List all installed modules that need updates.

View File

@ -0,0 +1,3 @@
Usage: v repl
This command runs the V REPL.

View File

@ -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)

View File

@ -0,0 +1,3 @@
Usage: v show
Display information about a module on vpm.

View File

@ -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.

View File

@ -0,0 +1,3 @@
Usage: v tracev
Produce a tracing version of the V compiler.

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,7 @@
Usage: v upgrade
Upgrade all outdated modules.
Options:
-help - Show usage info.
-v - Print more details about the upgrade.

View File

@ -0,0 +1,3 @@
Usage: v version
Print the version of V installed.