mirror of
https://github.com/onyx-and-iris/slobs-cli.git
synced 2025-06-27 07:10: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)
|
||||
|
||||
|
||||
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)
|
||||
|
||||
@ -21,6 +21,7 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
|
||||
|
||||
- Python 3.10 or greater
|
||||
- [Streamlabs Desktop][sl-desktop]
|
||||
- A websocket token: Settings > Remote Control > API Token
|
||||
|
||||
## Installation
|
||||
|
||||
@ -44,7 +45,7 @@ The CLI should now be discoverable as `slobs-cli`
|
||||
|
||||
- --domain/-d: Streamlabs client domain
|
||||
- --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:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "slobs-cli"
|
||||
version = "0.7.4"
|
||||
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"]
|
||||
|
@ -28,12 +28,11 @@ from pyslobs import ConnectionConfig, SlobsConnection
|
||||
help="The token for the SLOBS server.",
|
||||
envvar="SLOBS_TOKEN",
|
||||
show_envvar=True,
|
||||
required=True,
|
||||
)
|
||||
@click.pass_context
|
||||
async def cli(ctx: click.Context, domain: str, port: int, token: str | None):
|
||||
"""
|
||||
Command line interface for SLOBS.
|
||||
"""
|
||||
"""Command line interface for Streamlabs Desktop."""
|
||||
ctx.ensure_object(dict)
|
||||
config = ConnectionConfig(
|
||||
domain=domain,
|
||||
|
Loading…
x
Reference in New Issue
Block a user