-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wade Wells
committed
Jul 22, 2023
1 parent
10b0a4b
commit 0f6778b
Showing
5 changed files
with
348 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
{ | ||
"version": "2.0.0", | ||
// None of this is used | ||
// sed -i 's/"default": .*/"default": "show poop"/' .vscode/launch.json | ||
"tasks": [ | ||
{ | ||
// pickString input allows you to select previous but not to provide a new option. promptString allows you to input, but doesn't show history | ||
// This is a compromise... using promptString and will echo the previous to the terminal... can copy/paste into window from history | ||
// disregard... This didn't work, the promptString executes prior to the task | ||
"label": "show-prev-args", | ||
"type": "shell", | ||
"command": "[[ -f ${workspaceFolder}/.vscode/prev_args ]] && cat ${workspaceFolder}/.vscode/prev_args && sleep 3" | ||
}, | ||
{ | ||
"label": "pre-get-args", | ||
"type": "shell", | ||
"command": "[[ -f ${workspaceFolder}/.vscode/vscargs.sh ]] && echo found vscargs && . ${workspaceFolder}/.vscode/vscargs.sh && echo Source Success && export VSC_PREV_ARGS=${env:VSC_PREV_ARGS} || echo Something went wrong" | ||
}, | ||
{ | ||
"label": "post-export-args", | ||
"type": "shell", | ||
"command": "echo VSC_PREV_ARGS: $VSC_PREV_ARGS" | ||
}, | ||
{ | ||
"label": "central cli arguments", | ||
"type": "shell", | ||
"command": "[ -f ${workspaceFolder}/.vscode/envvars ] && . ${workspaceFolder}/.vscode/envvars; echo export PREV_ARGS=\\'${input:command}\\' > ${workspaceFolder}/.vscode/envvars" | ||
}, | ||
{ | ||
"label": "printenv", | ||
"type": "shell", | ||
"command": "printenv", | ||
}, | ||
{ | ||
"label": "ECHO", | ||
"type": "shell", | ||
"command": "echo ${env:VSC_PREV_ARGS} ${workspaceFolder}", | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"description": "arguments to pass to Aruba Central CLI", | ||
"id": "command", | ||
"type": "promptString", | ||
"default": "${env:PREV_ARGS}" | ||
// type specific configuration attributes | ||
} | ||
] | ||
} | ||
"version": "2.0.0", | ||
// None of this is used | ||
// sed -i 's/"default": .*/"default": "show poop"/' .vscode/launch.json | ||
"tasks": [ | ||
{ | ||
// pickString input allows you to select previous but not to provide a new option. promptString allows you to input, but doesn't show history | ||
// This is a compromise... using promptString and will echo the previous to the terminal... can copy/paste into window from history | ||
// disregard... This didn't work, the promptString executes prior to the task | ||
"label": "show-prev-args", | ||
"type": "shell", | ||
"command": "[[ -f ${workspaceFolder}/.vscode/prev_args ]] && cat ${workspaceFolder}/.vscode/prev_args && sleep 3" | ||
}, | ||
{ | ||
"label": "pre-get-args", | ||
"type": "shell", | ||
"command": "[[ -f ${workspaceFolder}/.vscode/vscargs.sh ]] && echo found vscargs && . ${workspaceFolder}/.vscode/vscargs.sh && echo Source Success && export VSC_PREV_ARGS=${env:VSC_PREV_ARGS} || echo Something went wrong" | ||
}, | ||
{ | ||
"label": "post-export-args", | ||
"type": "shell", | ||
"command": "echo VSC_PREV_ARGS: $VSC_PREV_ARGS" | ||
}, | ||
{ | ||
"label": "central cli arguments", | ||
"type": "shell", | ||
"command": "[ -f ${workspaceFolder}/.vscode/envvars ] && . ${workspaceFolder}/.vscode/envvars; echo export PREV_ARGS=\\'${input:command}\\' > ${workspaceFolder}/.vscode/envvars" | ||
}, | ||
{ | ||
"label": "printenv", | ||
"type": "shell", | ||
"command": "printenv" | ||
}, | ||
{ | ||
"label": "ECHO", | ||
"type": "shell", | ||
"command": "echo ${env:VSC_PREV_ARGS} ${workspaceFolder}" | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"description": "arguments to pass to Aruba Central CLI", | ||
"id": "command", | ||
"type": "promptString", | ||
"default": "${env:PREV_ARGS}" | ||
// type specific configuration attributes | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.