From c03749916dd1dfd70ffadf1cbc0811cd9e1b415d Mon Sep 17 00:00:00 2001 From: Lou Stella Date: Thu, 17 Mar 2022 15:30:06 -0500 Subject: [PATCH 1/2] vscode files --- .vscode/launch.json | 67 +++++++++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 10 +++++++ 2 files changed, 77 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..9c9fc3c67e --- /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", "detection"] + }, + { + "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", "-pr", "detection"] + }, + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "args": [ + "--path", + ".", + "--output", + "docs", + "-v" + ] + } + ] +} \ No newline at end of file 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 From 31d37484420cdf56497ac818fdd247a6014eeee7 Mon Sep 17 00:00:00 2001 From: Lou Stella Date: Fri, 18 Mar 2022 10:24:45 -0500 Subject: [PATCH 2/2] Small fix --- .vscode/launch.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9c9fc3c67e..d19db00067 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -29,7 +29,7 @@ "program": "${workspaceFolder}/contentctl.py", "console": "integratedTerminal", "justMyCode": true, - "args": ["-p", ".", "generate", "-o", "dist/escu", "-pr", "detection"] + "args": ["-p", ".", "generate", "-o", "dist/escu", "-pr", "ESCU"] }, { "name": "contentctl docgen", @@ -47,7 +47,7 @@ "program": "${workspaceFolder}/contentctl.py", "console": "integratedTerminal", "justMyCode": true, - "args": ["-p", "detections", "content_changer", "-cf", "fix_kill_chain", "-pr", "detection"] + "args": ["-p", "detections", "content_changer", "-cf", "fix_kill_chain"] }, { "name": "Python: Current File", @@ -64,4 +64,4 @@ ] } ] -} \ No newline at end of file +}