Skip to content

Instantly share code, notes, and snippets.

@CrowderSoup
Last active April 14, 2017 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrowderSoup/a305904eb01bcf3e7daa3448ee845bc5 to your computer and use it in GitHub Desktop.
Save CrowderSoup/a305904eb01bcf3e7daa3448ee845bc5 to your computer and use it in GitHub Desktop.
VSCode Task for serving swagger docs with http://goswagger.io
{
"version": "0.1.0",
"command": "bash",
"isShellCommand": true,
"showOutput": "always",
"args": [
"-c"
],
"tasks": [{
"taskName": "swagger",
"suppressTaskName": true,
"args": [
"swagger serve ${workspaceRoot}/swagger/swagger.json --host=localhost --port=8081 -F swagger"
]
},
{
"taskName": "stop swagger",
"suppressTaskName": true,
"args": [
"killall swagger"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment