mirror of
https://github.com/dtomlinson91/tembo.git
synced 2025-12-22 06:05:44 +00:00
adding version option
This commit is contained in:
@@ -3,6 +3,8 @@ import os
|
||||
import panaetius
|
||||
from panaetius.exceptions import LoggingDirectoryDoesNotExistException
|
||||
|
||||
__version__ = "0.1.0"
|
||||
|
||||
if (config_path := os.environ.get("TEMBO_CONFIG")) is not None:
|
||||
CONFIG = panaetius.Config("tembo", config_path)
|
||||
else:
|
||||
|
||||
@@ -8,6 +8,13 @@ CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
||||
|
||||
|
||||
@click.group(context_settings=CONTEXT_SETTINGS, options_metavar="<options>")
|
||||
@click.version_option(
|
||||
tembo.__version__,
|
||||
"-v",
|
||||
"--version",
|
||||
prog_name="Tembo",
|
||||
message=f"Tembo v{tembo.__version__} 🐘",
|
||||
)
|
||||
def run():
|
||||
"""
|
||||
Tembo - an organiser for work notes.
|
||||
|
||||
Reference in New Issue
Block a user