tmuxp.workspace.builder.resolve_builder_class
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- tmuxp.workspace.builder.resolve_builder_class ( session_config : dict[str, t.Any] ) type[WorkspaceBuilderProtocol]
-
Resolve the workspace builder class selected by
session_config.Resolution of the
workspace_buildervalue:1. absent/empty → the classic
ClassicWorkspaceBuilder(no import, no entry-point scan); 2. contains:→ amodule:attrobject reference; 3. no.and no:→ an entry-point name in thetmuxp.workspace_buildersgroup; 4. dotted, no:→ an entry-point name if registered, otherwise amodule.attrdotted path.Examples
The default resolves to the classic builder without importing anything:
>>> from tmuxp.workspace.builder.classic import ClassicWorkspaceBuilder>>> resolve_builder_class({}) is ClassicWorkspaceBuilderTrueA dotted
module:attrreference is imported and validated:>>> resolve_builder_class(... {... "workspace_builder": (... "tmuxp.workspace.builder.classic:ClassicWorkspaceBuilder"... )... }... ) is ClassicWorkspaceBuilderTrue