Skip to content

Commit 54ebd9f

Browse files
committed
Make the resizing step clearer
Closes: #27 Signed-off-by: Hector Martin <[email protected]>
1 parent 4d3c4c5 commit 54ebd9f

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

src/main.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,22 @@ def action_resize(self, resizable):
547547

548548
assert free > min_free
549549

550-
p_message(f"Resizing: {target.desc}")
551-
p_info(f" Total size: {col()}{ssize(total)}")
552-
p_info(f" Free space: {col()}{ssize(free)}")
553-
p_info(f" Minimum free space: {col()}{ssize(min_free)}")
554-
p_info(f" Minimum total size: {col()}{ssize(min_size)} ({min_perc:.2f}%)")
555-
print()
556-
p_question("Enter the new partition size:")
557-
p_message(" You can enter a size such as '1GB', a fraction such as '50%',")
558-
p_message(" or the word 'min' for the smallest allowable size.")
550+
p_message( "We're going to resize this partition:")
551+
p_message(f" {target.desc}")
552+
p_info( f" Total size: {col()}{ssize(total)}")
553+
p_info( f" Free space: {col()}{ssize(free)}")
554+
p_info( f" Minimum free space: {col()}{ssize(min_free)}")
555+
p_info( f" Minimum total size: {col()}{ssize(min_size)} ({min_perc:.2f}%)")
556+
print()
557+
p_question("Enter the new size for your existing partition:")
558+
p_message( " You can enter a size such as '1GB', a fraction such as '50%',")
559+
p_message( " or the word 'min' for the smallest allowable size.")
560+
print()
561+
p_message( " Examples:")
562+
p_message( " 30% - 30% to macOS, 70% to the new OS")
563+
p_message( " 80GB - 80GB to macOS, the rest to your new OS")
564+
p_message( " min - Shrink macOS as much as (safely) possible")
565+
print()
559566

560567
default = "50%"
561568
if total / 2 < min_size:

0 commit comments

Comments
 (0)