Skip to content

Commit

Permalink
Add support for TinyGo 0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Feb 29, 2024
1 parent 7960150 commit fbea995
Showing 1 changed file with 39 additions and 43 deletions.
82 changes: 39 additions & 43 deletions autocmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,44 @@ import (

// flagCompleteMap specifies which flags to autocomplete.
var flagCompleteMap = map[string][]string{
"baudrate": {},
"bench": {},
"benchmem": nil,
"benchtime": {},
"c": nil,
"cflags": {},
"cpuprofile": {},
"deps": nil,
"dumpssa": nil,
"gc": {"none", "leaking", "extalloc", "conservative"},
"heap-size": {},
"interp-timeout": {},
"json": nil,
"ldflags": {},
"llvm-features": nil,
"monitor": nil,
"no-debug": nil,
"o": {},
"ocd-commands": {},
"ocd-output": nil,
"ocd-verify": nil,
"opt": {"0", "1", "2", "s", "z"},
"p": {},
"panic": {"print", "trap"},
"port": {},
"print-allocs": {},
"print-stacks": nil,
"printir": nil,
"programmer": validProgrammers,
"run": {},
"scheduler": {"none", "tasks", "asyncify", "coroutines"},
"serial": {"none", "uart", "usb"},
"size": {"none", "short", "full"},
"short": nil,
"stack-size": {},
"tags": {},
"target": validTargets,
"test": nil,
"verifyir": nil,
"wasm-abi": {"generic", "js"},
"work": nil,
"x": nil,
"v": nil,
"baudrate": {},
"bench": {},
"benchmem": nil,
"benchtime": {},
"c": nil,
"cflags": {},
"cpuprofile": {},
"deps": nil,
"gc": {"none", "leaking", "extalloc", "conservative"},
"heap-size": {},
"internal-dumpssa": nil,
"internal-nodwarf": nil,
"internal-printir": nil,
"internal-verifyir": nil,
"interp-timeout": {},
"ldflags": {},
"llvm-features": nil,
"monitor": nil,
"no-debug": nil,
"o": {},
"ocd-commands": {},
"ocd-output": nil,
"opt": {"0", "1", "2", "s", "z"},
"p": {},
"panic": {"print", "trap"},
"port": {},
"print-allocs": {},
"print-stacks": nil,
"programmer": validProgrammers,
"scheduler": {"none", "tasks", "asyncify", "coroutines"},
"serial": {"none", "uart", "usb"},
"size": {"none", "short", "full"},
"stack-size": {},
"tags": {},
"target": validTargets,
"wasm-abi": {"generic", "js"},
"work": nil,
"x": nil,
}

// validTargets is a list of completion targets for -target. It can be overridden by arguments.
Expand All @@ -76,6 +71,7 @@ var (
"list",
"lldb",
"monitor",
"ports",
"run",
"targets",
"test",
Expand Down

0 comments on commit fbea995

Please sign in to comment.