{
    "version": "2.0.0",
    "type": "shell",
    "command": "go",
    "cwd": "${workspaceFolder}",
    "tasks": [
        {
            "label": "install",
            "args": ["install", "-v", "./..."],
            "group": "build",
        },
        {
            "label": "run file",
            "args": ["run", "${file}"],
            "group": "build",
        },
        {
            "label": "run project",
            "args": ["run", "./cmd/stbackend/main.go"],
            "group": "build",
            "options":{
                "env":{
                    "DATABASE_URL":  "test",
                    "DATABASE_DIALECT": "sqlite",
                    "JWT_SECRET": "JwTDeVSeCRet15243"
                }
            },
        },
        {
            "label": "build project",
            "args": ["build", "-x", "-v", "-o=stbackend", "-buildvcs=true", "./cmd/stbackend/main.go"],
            "group": "build"
        },
        {
            "label": "test",
            "args": ["test", "-v", "./..."],
            "group": "test",
        },
    ],
}