tasks.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. }