Skip to content

Commit

Permalink
Merge pull request #73 from AstuteSource/chastenversion
Browse files Browse the repository at this point in the history
Feature: adds version command to `chasten`
  • Loading branch information
laurennevill authored Oct 13, 2023
2 parents 699c5b2 + f13f658 commit e102e45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chasten/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,15 @@ def log() -> None:
server.start_syslog_server()


@cli.command()
def version():
"""🖥️ Display the version of Chasten."""
# Get Chasten version from util file
version_string = util.get_chasten_version()
# output chasten version
typer.echo(f"chasten {version_string}")


# ---
# End region: Command-line interface functions }}}
# ---

0 comments on commit e102e45

Please sign in to comment.