Skip to content

Latest commit

 

History

History
78 lines (42 loc) · 4.29 KB

File metadata and controls

78 lines (42 loc) · 4.29 KB
graph LR
    principalmapper___main__["principalmapper.__main__"]
    pmapper["pmapper"]
    principalmapper_analysis_cli["principalmapper.analysis.cli"]
    principalmapper_graphing_graph_cli["principalmapper.graphing.graph_cli"]
    principalmapper_graphing_orgs_cli["principalmapper.graphing.orgs_cli"]
    principalmapper_querying_repl["principalmapper.querying.repl"]
    principalmapper___main__ -- "hands off control to" --> pmapper
    pmapper -- "routes requests to" --> principalmapper_analysis_cli
    pmapper -- "routes requests to" --> principalmapper_graphing_graph_cli
    pmapper -- "routes requests to" --> principalmapper_graphing_orgs_cli
    pmapper -- "initiates" --> principalmapper_querying_repl
Loading

CodeBoardingDemoContact

Details

The CLI & Orchestration Layer subsystem encompasses the core entry points and command dispatching mechanisms of the PMapper application.

principalmapper.main

The absolute entry point for the PMapper application when executed as a script. It initializes the application environment and delegates control to the primary orchestrator. This component is fundamental as it's the first point of execution for the CLI tool.

Related Classes/Methods:

pmapper

Acts as the central command dispatcher. It receives parsed arguments (likely from __main__) and determines which specific CLI sub-component (e.g., analysis.cli, graph_cli, orgs_cli, or repl) should handle the request. It embodies the overall application logic flow and is crucial for orchestrating user commands.

Related Classes/Methods:

principalmapper.analysis.cli

Specializes in parsing and handling command-line arguments specifically related to analysis functionalities (e.g., policy simulation, risk assessment). It translates CLI commands into calls to the underlying analysis engine, serving as the CLI interface for a specific functional area.

Related Classes/Methods:

principalmapper.graphing.graph_cli

Parses and handles command-line arguments for general graph-related operations, such as generating visualizations or performing generic graph queries. This component provides the CLI interface for broad graph functionalities.

Related Classes/Methods:

principalmapper.graphing.orgs_cli

Specializes in parsing and handling command-line arguments for AWS Organizations-specific graph operations, including traversing and mapping OU structures. This component provides a focused CLI interface for a specific domain within graph operations.

Related Classes/Methods:

principalmapper.querying.repl

Provides a Read-Eval-Print Loop (REPL) for interactive querying of the PMapper's data model. It manages the session, parses user input, executes queries, and displays results. This component is crucial for interactive user experience, aligning with the "CLI Tool" aspect.

Related Classes/Methods: