mirror of
https://github.com/onyx-and-iris/slobs-cli.git
synced 2025-06-27 15:20:24 +01:00
token is now required
patch bump
This commit is contained in:
parent
6985ad84d1
commit
e4353d7626
@ -4,7 +4,7 @@
|
|||||||
[](https://github.com/astral-sh/ruff)
|
[](https://github.com/astral-sh/ruff)
|
||||||
|
|
||||||
|
|
||||||
A command line interface for Streamlabs Desktop
|
A command line interface for the Streamlabs Desktop websocket API.
|
||||||
|
|
||||||
For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
|||||||
|
|
||||||
- Python 3.10 or greater
|
- Python 3.10 or greater
|
||||||
- [Streamlabs Desktop][sl-desktop]
|
- [Streamlabs Desktop][sl-desktop]
|
||||||
|
- A websocket token: Settings > Remote Control > API Token
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -44,7 +45,7 @@ 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: Remote Control API Token
|
- --token/-t: API Token
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "slobs-cli"
|
name = "slobs-cli"
|
||||||
version = "0.7.4"
|
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"]
|
||||||
|
@ -28,12 +28,11 @@ from pyslobs import ConnectionConfig, SlobsConnection
|
|||||||
help="The token for the SLOBS server.",
|
help="The token for the SLOBS server.",
|
||||||
envvar="SLOBS_TOKEN",
|
envvar="SLOBS_TOKEN",
|
||||||
show_envvar=True,
|
show_envvar=True,
|
||||||
|
required=True,
|
||||||
)
|
)
|
||||||
@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 SLOBS.
|
|
||||||
"""
|
|
||||||
ctx.ensure_object(dict)
|
ctx.ensure_object(dict)
|
||||||
config = ConnectionConfig(
|
config = ConnectionConfig(
|
||||||
domain=domain,
|
domain=domain,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user