diff --git a/jrnl/messages.py b/jrnl/messages.py index 15b85f8b..ee4c9e05 100644 --- a/jrnl/messages.py +++ b/jrnl/messages.py @@ -25,7 +25,6 @@ class MsgText(Enum): return self.value # -- Welcome --- # - WelcomeToJrnl = """ Welcome to jrnl {version}! @@ -43,6 +42,8 @@ class MsgText(Enum): older versions of jrnl anymore. """ + AllDoneUpgrade = "We're all done here and you can start enjoying jrnl 2" + # --- Exceptions ---# UncaughtException = """ {name} @@ -171,6 +172,8 @@ class MsgText(Enum): Upgrading {journal_type} '{journal_name}' journal stored in {path}... """ + UpgradingConfig = "Upgrading config..." + PaddedJournalName = "{journal_name:{pad}} -> {path}" # -- Config --- # diff --git a/jrnl/upgrade.py b/jrnl/upgrade.py index 9adc7795..00afc3cb 100644 --- a/jrnl/upgrade.py +++ b/jrnl/upgrade.py @@ -177,11 +177,11 @@ def upgrade_jrnl(config_path): for j in all_journals: j.write() - print("\nUpgrading config...", file=sys.stderr) + print_msg(Message(MsgText.UpgradingConfig, MsgType.NORMAL)) backup(config_path) - print("\nWe're all done here and you can start enjoying jrnl 2.", file=sys.stderr) + print_msg(Message(MsgText.AllDoneUpgrade, MsgType.NORMAL)) def is_old_version(config_path):