feat: initial release
This commit is contained in:
29
src/sslysze_scan/__main__.py
Normal file
29
src/sslysze_scan/__main__.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Main entry point for compliance-scan."""
|
||||
|
||||
import sys
|
||||
|
||||
from .cli import parse_arguments
|
||||
from .commands import handle_report_command, handle_scan_command
|
||||
from .output import print_error
|
||||
|
||||
|
||||
def main() -> int:
|
||||
"""Main entry point for compliance-scan.
|
||||
|
||||
Returns:
|
||||
Exit code (0 for success, 1 for error).
|
||||
|
||||
"""
|
||||
args = parse_arguments()
|
||||
|
||||
if args.command == "scan":
|
||||
return handle_scan_command(args)
|
||||
if args.command == "report":
|
||||
return handle_report_command(args)
|
||||
print_error(f"Unknown command: {args.command}")
|
||||
return 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user