cmder定义go命令行模板
使用cmder时可以方便的定义各种自己使用的命令行提示功能,以下是我对go语言的命令行的提示代码。
文件放到cmder\vendor\clink-completions\go.lua
local parser = clink.arg.new_parser
local go_parser = parser({
"bug",
"build",
"clean" .. parser({"-modcache"}),
"doc",
"env" .. parser({"-json","-u","-w"}),
"fix",
"fmt" .. parser({"-n","-x"}),
"generate",
"get",
"install",
"list",
"mod" .. parser({"download","graph","init","tidy","vendor","verify","why"}),
"run",
"test",
"tool",
"version",
"vet",
"help" .. parser({"bug","build","clean","doc","env","fix","fmt","generate",
"get","install","list","mod","run","test","tool","version","vet"})
})
clink.arg.register_parser("go", go_parser)