Files
macos_security/mscp.py
Stephen Beale 4f856091d0 refactor: Multiple changes done to multiple files
- CHANGELOG updated
- Move logging initialization from cli.py to mscp.py
- Update Readme
-- Link to new mSCP Document site
- Revert Rule folder changes
- Move mscp_data to a variable used throughout the module
- Refactor tags logic to handle rules without tags
- Refactor baseline.py to work with both tags and baselines
- Refactor jinja2 templates for documents
-- Single folder for common templates
-- Logic for which document type to do
-- Folders with templates to complex to create a single template
- Refactor documents.py
-- Reduced functions for handling conversion from asciidoc to markdown
-- Removed generate_markdown and generate_adoc functions for more unified function generate_document
2025-08-05 16:00:46 -06:00

24 lines
466 B
Python
Executable File

#! .venv/bin/python3
# filename: mscp.py
# Standard python modules
import sys
# Local python modules
from src.mscp.cli import parse_cli
from src.mscp.common_utils.logger_instance import logger
from src.mscp.common_utils.logging_config import set_logger
logger.enable("mscp")
logger = set_logger()
logger.info("=== Logging Initialized ===")
logger.info("LOGGING LEVEL: INFO")
def main() -> None:
parse_cli()
if __name__ == "__main__":
sys.exit(main())