mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Add message with config location and docs location when installation is complete (#1695)
This commit is contained in:
parent
23150ddb31
commit
427485a1d7
3 changed files with 17 additions and 1 deletions
|
@ -154,6 +154,15 @@ def install() -> dict:
|
||||||
default_config["colors"] = get_default_colors()
|
default_config["colors"] = get_default_colors()
|
||||||
|
|
||||||
save_config(default_config)
|
save_config(default_config)
|
||||||
|
|
||||||
|
print_msg(
|
||||||
|
Message(
|
||||||
|
MsgText.InstallComplete,
|
||||||
|
MsgStyle.NORMAL,
|
||||||
|
params={"config_path": get_config_path()},
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
return default_config
|
return default_config
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,11 @@ class MsgText(Enum):
|
||||||
|
|
||||||
AllDoneUpgrade = "We're all done here and you can start enjoying jrnl 2"
|
AllDoneUpgrade = "We're all done here and you can start enjoying jrnl 2"
|
||||||
|
|
||||||
|
InstallComplete = """
|
||||||
|
jrnl configuration created at {config_path}
|
||||||
|
For advanced features, read the docs at https://jrnl.sh
|
||||||
|
"""
|
||||||
|
|
||||||
# --- Prompts --- #
|
# --- Prompts --- #
|
||||||
InstallJournalPathQuestion = """
|
InstallJournalPathQuestion = """
|
||||||
Path to your journal file (leave blank for {default_journal_path}):
|
Path to your journal file (leave blank for {default_journal_path}):
|
||||||
|
|
|
@ -6,7 +6,9 @@ Feature: Installing jrnl
|
||||||
\n
|
\n
|
||||||
\n
|
\n
|
||||||
\n
|
\n
|
||||||
Then the output should contain "Journal 'default' created"
|
Then the output should contain "jrnl configuration created at"
|
||||||
|
And the output should contain "For advanced features, read the docs at https://jrnl.sh"
|
||||||
|
And the output should contain "Journal 'default' created"
|
||||||
And the default journal "journal.txt" should be in the "." directory
|
And the default journal "journal.txt" should be in the "." directory
|
||||||
And the config should contain "encrypt: false"
|
And the config should contain "encrypt: false"
|
||||||
And the version in the config file should be up-to-date
|
And the version in the config file should be up-to-date
|
||||||
|
|
Loading…
Add table
Reference in a new issue