mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
Clean up copyright notices and version screen (#1553)
* update copyright symbols to unicode * clean up version screen/copyright notice * small change to make commands more similar * update imports to appease isort * fix test * update one more file merged since PR was open
This commit is contained in:
parent
5dcc721f15
commit
4eb9c9fdec
102 changed files with 116 additions and 109 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2012-2022 jrnl contributors
|
||||
# Copyright © 2012-2022 jrnl contributors
|
||||
# License: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
"""
|
||||
|
@ -26,27 +26,34 @@ from jrnl.prompt import create_password
|
|||
|
||||
|
||||
def preconfig_diagnostic(_):
|
||||
from jrnl import __title__
|
||||
from jrnl import __version__
|
||||
|
||||
print(
|
||||
f"jrnl: {__version__}\n"
|
||||
f"{__title__}: {__version__}\n"
|
||||
f"Python: {sys.version}\n"
|
||||
f"OS: {platform.system()} {platform.release()}"
|
||||
)
|
||||
|
||||
|
||||
def preconfig_version(_):
|
||||
import textwrap
|
||||
|
||||
from jrnl import __title__
|
||||
from jrnl import __version__
|
||||
|
||||
version_str = f"""{__title__} version {__version__}
|
||||
output = f"""
|
||||
{__title__} {__version__}
|
||||
|
||||
Copyright (C) 2012-2022 jrnl contributors
|
||||
Copyright © 2012-2022 jrnl contributors
|
||||
|
||||
This is free software, and you are welcome to redistribute it under certain
|
||||
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html"""
|
||||
This is free software, and you are welcome to redistribute it under certain
|
||||
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
"""
|
||||
|
||||
print(version_str)
|
||||
output = textwrap.dedent(output).strip()
|
||||
|
||||
print(output)
|
||||
|
||||
|
||||
def postconfig_list(config, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue