Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 4.38 KB

File metadata and controls

63 lines (37 loc) · 4.38 KB
graph LR
    Completion_Orchestrator["Completion Orchestrator"]
    Argument_Command_Completion_Preparer["Argument/Command Completion Preparer"]
    Value_Completion_Preparer["Value Completion Preparer"]
    Completion_Utilities["Completion Utilities"]
    Completion_Orchestrator -- "delegates to" --> Argument_Command_Completion_Preparer
    Completion_Orchestrator -- "delegates to" --> Value_Completion_Preparer
    Argument_Command_Completion_Preparer -- "relies on" --> Completion_Utilities
    Value_Completion_Preparer -- "utilizes" --> Completion_Utilities
    Completion_Utilities -- "serves as a dependency for" --> Argument_Command_Completion_Preparer
    Completion_Utilities -- "serves as a dependency for" --> Value_Completion_Preparer
Loading

CodeBoardingDemoContact

Details

The Auto-completion Engine subsystem is primarily encapsulated within the nubia.internal.completion module. It is responsible for providing intelligent, context-aware suggestions to the user as they type in the interactive shell, aligning with the project's strong bias towards a rich interactive user experience.

Completion Orchestrator

This is the primary entry point for the auto-completion process. It receives the current input and delegates the task of generating completion candidates to specialized preparers based on the context (e.g., whether an argument or a value is expected).

Related Classes/Methods:

Argument/Command Completion Preparer

Focuses on suggesting commands, subcommands, and arguments (flags or positional) that can logically follow the current input. It analyzes the input tokens to determine valid next commands or arguments.

Related Classes/Methods:

Value Completion Preparer

Specializes in providing possible values for a specific argument or option once that argument has been identified. It uses argument metadata to narrow down and suggest appropriate values.

Related Classes/Methods:

Completion Utilities

A foundational set of helper functions and classes that provide essential low-level capabilities for the completion process. This includes parsing the input string into tokens (TokenParse), identifying argument types, and retrieving argument metadata. These utilities are crucial for both argument and value completion logic.

Related Classes/Methods: