Skip to content

Commit

Permalink
fix: slightly improved readable formatting for ew mp.mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvandernoord committed Jul 12, 2024
1 parent f64ec4c commit 5fc1a35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/edwh_multipass_plugin/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,10 @@ def list_mounts(c: Connection, machine: str = DEFAULT_MACHINE_NAME) -> None:
config = _load_mp_config(c)
mounts = get_mounts(config, machine)

print(mounts)
home = str(Path.home())
cprint(f"Mounts for '{machine}':")
for source, target in mounts.items():
if source.startswith(home):
source = source.replace(home, "~", 1)

print(f" {source}: {target}")

0 comments on commit 5fc1a35

Please sign in to comment.