tasks.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "go: build",
  6. "type": "shell",
  7. "command": "go",
  8. "args": [
  9. "build",
  10. "-o",
  11. "bin/3x-ui.exe",
  12. "./main.go"
  13. ],
  14. "options": {
  15. "cwd": "${workspaceFolder}"
  16. },
  17. "problemMatcher": [
  18. "$go"
  19. ],
  20. "group": {
  21. "kind": "build",
  22. "isDefault": true
  23. }
  24. },
  25. {
  26. "label": "go: run",
  27. "type": "shell",
  28. "command": "go",
  29. "args": [
  30. "run",
  31. "./main.go"
  32. ],
  33. "options": {
  34. "cwd": "${workspaceFolder}",
  35. "env": {
  36. "XUI_DEBUG": "true"
  37. }
  38. },
  39. "problemMatcher": [
  40. "$go"
  41. ]
  42. },
  43. {
  44. "label": "go: test",
  45. "type": "shell",
  46. "command": "go",
  47. "args": [
  48. "test",
  49. "./..."
  50. ],
  51. "options": {
  52. "cwd": "${workspaceFolder}"
  53. },
  54. "problemMatcher": [
  55. "$go"
  56. ],
  57. "group": "test"
  58. },
  59. {
  60. "label": "go: vet",
  61. "type": "shell",
  62. "command": "go",
  63. "args": [
  64. "vet",
  65. "./..."
  66. ],
  67. "options": {
  68. "cwd": "${workspaceFolder}"
  69. },
  70. "problemMatcher": [
  71. "$go"
  72. ]
  73. },
  74. {
  75. "label": "go: fmt",
  76. "type": "shell",
  77. "command": "gofmt",
  78. "args": [
  79. "-l",
  80. "-w",
  81. "."
  82. ],
  83. "options": {
  84. "cwd": "${workspaceFolder}"
  85. },
  86. "problemMatcher": []
  87. }
  88. ]
  89. }