mirror of
https://github.com/onyx-and-iris/slobs-cli.git
synced 2025-08-07 20:21:55 +00:00
Compare commits
No commits in common. "e7a561c7b48f64da84c6f8941ca4df4ffdd41a1a" and "e4353d7626147c90dc76e9800a02e59203c58e08" have entirely different histories.
e7a561c7b4
...
e4353d7626
10
CHANGELOG.md
10
CHANGELOG.md
@ -5,16 +5,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
# [0.7.6] - 2025-06-11
|
|
||||||
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- --version/-v command.
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- --token/-t is now required.
|
|
||||||
|
|
||||||
# [0.7.3] - 2025-06-10
|
# [0.7.3] - 2025-06-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2025 Onyx and Iris
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
11
README.md
11
README.md
@ -14,7 +14,7 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
|||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [Configuration](#configuration)
|
- [Configuration](#configuration)
|
||||||
- [Commands](#commands)
|
- [Commands](#root-typer)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
@ -46,7 +46,6 @@ The CLI should now be discoverable as `slobs-cli`
|
|||||||
- --domain/-d: Streamlabs client domain
|
- --domain/-d: Streamlabs client domain
|
||||||
- --port/-p Streamlabs client port
|
- --port/-p Streamlabs client port
|
||||||
- --token/-t: API Token
|
- --token/-t: API Token
|
||||||
- --version/-v: Print the slobs-cli version
|
|
||||||
|
|
||||||
Pass `--domain`, `--port` and `--token` as flags on the root command, for example:
|
Pass `--domain`, `--port` and `--token` as flags on the root command, for example:
|
||||||
|
|
||||||
@ -233,11 +232,3 @@ slobs-cli studiomode status
|
|||||||
```console
|
```console
|
||||||
slobs-cli studiomode force-transition
|
slobs-cli studiomode force-transition
|
||||||
```
|
```
|
||||||
|
|
||||||
## Special Thanks
|
|
||||||
|
|
||||||
- [Julian-0](https://github.com/Julian-O) For writing the [PySLOBS wrapper](https://github.com/Julian-O/PySLOBS) on which this CLI depends.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
`slobs-cli` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
|
|
@ -1,12 +1,12 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "slobs-cli"
|
name = "slobs-cli"
|
||||||
|
version = "0.7.5"
|
||||||
description = "A command line application for Streamlabs Desktop"
|
description = "A command line application for Streamlabs Desktop"
|
||||||
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
||||||
dependencies = ["pyslobs>=2.0.4", "asyncclick>=8.1.8"]
|
dependencies = ["pyslobs>=2.0.4", "asyncclick>=8.1.8"]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
dynamic = ["version"]
|
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
slobs-cli = "slobs_cli.cli:run"
|
slobs-cli = "slobs_cli.cli:run"
|
||||||
@ -19,10 +19,6 @@ build-backend = "pdm.backend"
|
|||||||
[tool.pdm]
|
[tool.pdm]
|
||||||
distribution = true
|
distribution = true
|
||||||
|
|
||||||
[tool.pdm.version]
|
|
||||||
source = "file"
|
|
||||||
path = "src/slobs_cli/__about__.py"
|
|
||||||
|
|
||||||
[tool.pdm.scripts]
|
[tool.pdm.scripts]
|
||||||
cli.cmd = "slobs-cli {args}"
|
cli.cmd = "slobs-cli {args}"
|
||||||
cli.env_file = ".env"
|
cli.env_file = ".env"
|
||||||
@ -32,4 +28,8 @@ test.env_file = ".env"
|
|||||||
post_test.cmd = "python tests/teardown.py"
|
post_test.cmd = "python tests/teardown.py"
|
||||||
|
|
||||||
[dependency-groups]
|
[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",
|
||||||
|
]
|
||||||
|
@ -1 +0,0 @@
|
|||||||
__version__ = "0.7.6"
|
|
@ -2,8 +2,6 @@ import anyio
|
|||||||
import asyncclick as click
|
import asyncclick as click
|
||||||
from pyslobs import ConnectionConfig, SlobsConnection
|
from pyslobs import ConnectionConfig, SlobsConnection
|
||||||
|
|
||||||
from .__about__ import __version__ as version
|
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
@click.option(
|
@click.option(
|
||||||
@ -32,9 +30,6 @@ from .__about__ import __version__ as version
|
|||||||
show_envvar=True,
|
show_envvar=True,
|
||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
@click.version_option(
|
|
||||||
version, "-v", "--version", message="%(prog)s version: %(version)s"
|
|
||||||
)
|
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
async def cli(ctx: click.Context, domain: str, port: int, token: str | None):
|
async def cli(ctx: click.Context, domain: str, port: int, token: str | None):
|
||||||
"""Command line interface for Streamlabs Desktop."""
|
"""Command line interface for Streamlabs Desktop."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user