diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..d19db00067 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,67 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "contentctl new_detection", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/contentctl.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["-p", ".", "new_content", "-t", "detection"] + }, + { + "name": "contentctl validate", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/contentctl.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["-p", ".", "validate", "-pr", "ESCU"] + }, + { + "name": "contentctl generate", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/contentctl.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["-p", ".", "generate", "-o", "dist/escu", "-pr", "ESCU"] + }, + { + "name": "contentctl docgen", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/contentctl.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["-p", ".", "docgen", "-o", "docs"] + }, + { + "name": "contentctl content_changer", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/contentctl.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["-p", "detections", "content_changer", "-cf", "fix_kill_chain"] + }, + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "args": [ + "--path", + ".", + "--output", + "docs", + "-v" + ] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..297ae915ac --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "python.testing.pytestArgs": [ + "bin/contentctl_project" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true, + "python.terminal.activateEnvironment": true, + "python.envFile": "${workspaceFolder}/.env", + "python.testing.cwd": "${workspaceFolder}" +} \ No newline at end of file