Skip to content

Commit 476a550

Browse files
committed
fix(logging[load]): restore user-facing [Loading] message
why: The structured logging migration removed the user-visible [Loading] message that shows which workspace file is being loaded. what: - Add tmuxp_echo with [Loading] and privacy-masked workspace path - Uses PrivatePath (already imported) and cli_colors (already available)
1 parent ed00d63 commit 476a550

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/tmuxp/cli/load.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ def load_workspace(
358358
"loading workspace",
359359
extra={"tmux_config_path": str(workspace_file)},
360360
)
361+
tmuxp_echo(
362+
cli_colors.info("[Loading]")
363+
+ " "
364+
+ cli_colors.highlight(str(PrivatePath(workspace_file))),
365+
)
361366

362367
# ConfigReader allows us to open a yaml or json file as a dict
363368
raw_workspace = config_reader.ConfigReader._from_file(workspace_file) or {}

0 commit comments

Comments
 (0)