Skip to content

Instantly share code, notes, and snippets.

@jdgirald
Forked from agentgill/tasks.json
Created September 18, 2020 19:17
Show Gist options
  • Select an option

  • Save jdgirald/dce20e2e32861bc7a58286aa52037f43 to your computer and use it in GitHub Desktop.

Select an option

Save jdgirald/dce20e2e32861bc7a58286aa52037f43 to your computer and use it in GitHub Desktop.
{
"version": "2.0.0",
"tasks": [
{
"label": "SFDX: Deploy Current File",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:deploy",
"--sourcepath",
"${relativeFile}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "SFDX: Retrieve Current File",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:retrieve",
"--sourcepath",
"${relativeFile}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "SFDX: Delete Current File",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:delete",
"--sourcepath",
"${relativeFile}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "SFDX: Deploy Folder",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:deploy",
"--sourcepath",
"${input:sourcePath}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "SFDX: Retrieve Folder",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:deploy",
"--sourcepath",
"${input:sourcePath}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "SFDX: Delete Folder",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:delete",
"--sourcepath",
"${input:sourcePath}",
"--wait",
"10"
],
"group": "build",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
}
],
"inputs": [
{
"id": "sourcePath",
"type": "promptString",
"description": "Folder path to source metadata",
"default": "force-app"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment