INNER CODE UNIT · Python
get_version
antoniorodr/cronboard · src/cronboard/app.py:401
def get_version(self) -> str:
"""Gets the version of the app.
Returns:
The version of the app. If not found, returns "Unknown".
"""
try:
return version("cronboard")
except PackageNotFoundError:
return "Unknown"
def main():
"""Main function. Runs the CronBoard app."""
app = CronBoard()
app.run()