tmuxp.workspace.builder.ClassicWorkspaceBuilder.__init__
- tmuxp.workspace.builder.ClassicWorkspaceBuilder.__init__ ( self, session_config: dict[str, t
.Any ], server: Server, plugins: list[t.Any ] | None = None, on_progress: t.Callable [[str], None] | None = None, on_before_script: t.Callable [[], None] | None = None, on_script_output: t.Callable [[str], None] | None = None, on_build_event: t.Callable [[dict[str, t.Any ]], None] | None = None, ) None -
Initialize workspace loading.
- Parameters
-
-
session_config(dict[str, t.Any ]) # – session config, includes alistofwindows. -
plugins(list[t.Any ] | None) # – plugins to be used for this session -
on_progress(t.Callable [[str], None] | None) # – callback for progress updates during building -
on_before_script(t.Callable [[], None] | None) # – called just beforebefore_scriptruns; use to clear the terminal (e.g. stop a spinner) so script output is not interleaved -
on_script_output(t.Callable [[str], None] | None) # – called with each output line frombefore_scriptsubprocess; when set, raw TTY tee is suppressed so the caller can route lines to a live panel instead -
on_build_event(t.Callable [[dict[str, t.Any ]], None] | None) # – called with a dict event at each structural build milestone (session created, window started/done, pane creating, workspace built); used by the CLI to render a live session tree
-