Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created January 13, 2020 10:58
Show Gist options
  • Save hymkor/d86d0678806da1b86c7bf83f116ca5f6 to your computer and use it in GitHub Desktop.
Save hymkor/d86d0678806da1b86c7bf83f116ca5f6 to your computer and use it in GitHub Desktop.
go sub-command completion for nyagos
nyagos.complete_for.go = function(args)
if #args == 2 then
return {
"build", "clean", "doc", "env", "fix", "fmt", "generate",
"get", "install", "list", "mod", "run", "test", "tool", "version",
"vet"
}
end
return nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment