@@ -44,10 +44,13 @@ def main(text, text_from_file, file, animation, debug):
44
44
click .echo ("Please provide input using either --text or --text_from_file" )
45
45
return
46
46
47
+ if animation :
48
+ custom_printer = CustomPrint ("" )
49
+
47
50
padded_input_string = InputPadder (input_string ).pad_input ()
48
51
if debug :
49
52
if animation :
50
- custom_printer = CustomPrint ( f"\n \033 [33mPadded Input String: \033 [0m\033 [36m{ padded_input_string } \033 [0m" )
53
+ custom_printer . text = f"\n \033 [33mPadded Input String: \033 [0m\033 [36m{ padded_input_string } \033 [0m"
51
54
custom_printer .custom_print ()
52
55
else :
53
56
click .echo (f"\n \033 [33mPadded Input String: \033 [0m\033 [36m{ padded_input_string } \033 [0m" )
@@ -56,18 +59,18 @@ def main(text, text_from_file, file, animation, debug):
56
59
57
60
if debug :
58
61
if animation :
59
- custom_printer .text = f"\n \033 [33mExpanded Message Schedule: \033 [0m\033 [36m{ expanded_message_schedule } \033 [0m"
62
+ custom_printer .text = f"\n \033 [33mExpanded Message Schedule: \033 [0m\033 [36m{ expanded_message_schedule } \033 [0m\n "
60
63
custom_printer .custom_print ()
61
64
else :
62
- click .echo (f"\n \033 [33mExpanded Message Schedule: \033 [0m\033 [36m{ expanded_message_schedule } \033 [0m" )
65
+ click .echo (f"\n \033 [33mExpanded Message Schedule: \033 [0m\033 [36m{ expanded_message_schedule } \033 [0m\n " )
63
66
64
67
hash_result = MainClass (expanded_message_schedule ).hash_message ()
65
68
66
69
if animation :
67
- custom_printer .text = f"\n \ 033 [33mThe Hash Result : \033 [0m\033 [36m{ hash_result } \033 [0m"
70
+ custom_printer .text = f"\033 [33mThe SHA-256 Hash of { input_string } : \033 [0m\033 [36m{ hash_result } \033 [0m"
68
71
custom_printer .custom_print ()
69
72
else :
70
- click .echo (f"\n \ 033 [33mThe Hash Result : \033 [0m\033 [36m{ hash_result } \033 [0m" )
73
+ click .echo (f"\033 [33mThe SHA-256 Hash of { input_string } : \033 [0m\033 [36m{ hash_result } \033 [0m" )
71
74
72
75
if __name__ == '__main__' :
73
76
main ()
0 commit comments