tinygo
tinygo copied to clipboard
cli: Make tinygo help experience more consistent with go help #3739
- Improve tinygo help command output by streamlining layout and command descriptions
- Reorganize commands and help topics alphabetically, moving info and targets to help topics
- Create a new 'flags' help topic that contains all the flag details
- Use 'text/tabwriter' for consistent formatting and structuring of the help output
- Remove "No command-line arguments supplied." to match go
Credit to @m-kru for layout
TinyGo is a Go compiler for small places.
version: 0.28.0-dev
Usage:
tinygo <command> [arguments]
The commands are:
build compile packages and dependencies
clean empty cache directory (/Users/bjornpagen/Library/Caches/tinygo)
env list environment variables used during build
flash compile and flash to the device
gdb run/flash and immediately enter GDB
help print this help text
list run go list using the TinyGo root
lldb run/flash and immediately enter LLDB
monitor open communication port
run compile and run immediately
test test packages
version show version
Use "tinygo help <command>" for more information about a command.
Additional help topics:
flags general flags
info show info for specified target
targets list targets
Use "tinygo help <topic>" for more information about that topic.
For more details, see https://tinygo.org/docs/reference/usage/
Looks like a good improvement!