add --version/-v flag

This commit is contained in:
2025-06-11 02:09:32 +01:00
parent cb0a87df68
commit e7a561c7b4
5 changed files with 23 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
[project]
name = "slobs-cli"
version = "0.7.5"
description = "A command line application for Streamlabs Desktop"
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
dependencies = ["pyslobs>=2.0.4", "asyncclick>=8.1.8"]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
dynamic = ["version"]
[project.scripts]
slobs-cli = "slobs_cli.cli:run"
@@ -19,6 +19,10 @@ build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "file"
path = "src/slobs_cli/__about__.py"
[tool.pdm.scripts]
cli.cmd = "slobs-cli {args}"
cli.env_file = ".env"
@@ -28,8 +32,4 @@ test.env_file = ".env"
post_test.cmd = "python tests/teardown.py"
[dependency-groups]
dev = [
"tox-pdm>=0.7.2",
"pytest>=8.4.0",
"virtualenv-pyenv>=0.5.0",
]
dev = ["tox-pdm>=0.7.2", "pytest>=8.4.0", "virtualenv-pyenv>=0.5.0"]