Skip to content

Commit

Permalink
Add tinygo-0.25 commands and options
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Jul 27, 2022
1 parent e59c325 commit 0dfde2e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions autocmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (

// flagCompleteMap specifies which flags to autocomplete.
var flagCompleteMap = map[string][]string{
"bench": {},
"benchtime": {},
"c": nil,
"cflags": {},
"cpuprofile": {},
Expand All @@ -36,15 +38,19 @@ var flagCompleteMap = map[string][]string{
"print-stacks": nil,
"printir": nil,
"programmer": validProgrammers,
"run": {},
"scheduler": {"none", "tasks", "asyncify", "coroutines"},
"serial": {"none", "uart", "usb"},
"size": {"none", "short", "full"},
"short": nil,
"tags": {},
"target": validTargets,
"test": nil,
"verifyir": nil,
"wasm-abi": {"generic", "js"},
"work": nil,
"x": nil,
"v": nil,
}

// validTargets is a list of completion targets for -target. It can be overridden by arguments.
Expand All @@ -54,17 +60,21 @@ var (
validCommands = []string{
"build",
"build-library",
"clang",
"clean",
"env",
"flash",
"gdb",
"run",
"test",
"targets",
"help",
"info",
"ld.lld",
"list",
"clean",
"help",
"lldb",
"run",
"targets",
"test",
"version",
"env",
"wasm-ld",
}
)

Expand Down

0 comments on commit 0dfde2e

Please sign in to comment.