version.py

View code on Github

Functions for checking current version of the ts-backend-check CLI.

ts_backend_check.cli.version.get_local_version() str[source]

Get the local version of the ts-backend-check package.

Returns:
str

The version of the installed ts-backend-check package, or a message indicating that the package is not installed via pip.

ts_backend_check.cli.version.get_latest_version() Any[source]

Get the latest version of the ts-backend-check package from GitHub.

Returns:
Any

The latest version of the ts-backend-check package, or a message indicating that the version could not be fetched.

ts_backend_check.cli.version.get_version_message() str[source]

Get a message indicating the local and latest versions of the ts-backend-check package.

Returns:
str

A message indicating the local version, the latest version, and whether an upgrade is available.