mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
default securelens command to scan the current codebase if run without subcommands
This commit is contained in:
@@ -42,15 +42,17 @@ def _require_config(cfg):
|
||||
|
||||
# ── Main group ─────────────────────────────────────────────────────────────────
|
||||
|
||||
@click.group()
|
||||
@click.group(invoke_without_command=True)
|
||||
@click.version_option("2.0.0", prog_name="SecureLens AI")
|
||||
def main():
|
||||
@click.pass_context
|
||||
def main(ctx):
|
||||
"""
|
||||
\b
|
||||
SecureLens AI — AI-powered security scanner
|
||||
Scan codebases, URLs and get instant security reports.
|
||||
"""
|
||||
pass
|
||||
if ctx.invoked_subcommand is None:
|
||||
ctx.invoke(scan, path=".", model=None, output=None, max_files=None, ci=False, fail_on=None, no_ai=False, sync=False)
|
||||
|
||||
|
||||
# ── configure ─────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user