Skip to content

Commit

Permalink
feat:add headless arg to help
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Oct 31, 2024
1 parent 9ee0b67 commit cc676e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Safety --help",
"type": "debugpy",
"request": "launch",
"module": "safety",
"args": [
"--help"
],
"console": "integratedTerminal"
},
{
"name": "Safety Auth Login",
"type": "debugpy",
Expand Down
9 changes: 7 additions & 2 deletions safety/scan/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
f"Documentation: {CLI_DOCUMENTATION_URL}\n"\
f"Contact: {CLI_SUPPORT_EMAIL}\n"

CLI_AUTH_COMMAND_HELP = "Authenticate Safety CLI to perform scans. Your default browser will automatically open to https://platform.safetycli.com."\
"\nExample: safety auth login"
CLI_AUTH_COMMAND_HELP = (
"Authenticate with Safety CLI to perform scans.\n"
"If already authenticated, your default browser will automatically open to https://platform.safetycli.com."
"\nExample: safety auth login\n"
"For headless authentication, you will receive a URL to paste into an external browser."
"\nExample: safety auth login --headless"
)
CLI_SCAN_COMMAND_HELP = "Scans a Python project directory."\
"\nExample: safety scan to scan the current directory"
CLI_SYSTEM_SCAN_COMMAND_HELP = "\\[beta] Run a comprehensive scan for packages and vulnerabilities across your entire machine/environment."\
Expand Down

0 comments on commit cc676e5

Please sign in to comment.