we lose aliases in the help output but this does fix shell completion, which is more important.

fixes #3
This commit is contained in:
2026-02-07 05:20:37 +00:00
parent 34067ca61d
commit 9693d4f913
19 changed files with 180 additions and 141 deletions

View File

@@ -7,9 +7,8 @@ from rich.table import Table
from rich.text import Text
from obsws_cli import console, util
from obsws_cli.alias import SubTyperAliasGroup
app = typer.Typer(cls=SubTyperAliasGroup)
app = typer.Typer()
@app.callback()
@@ -17,7 +16,8 @@ def main():
"""Manage OBS settings."""
@app.command('show | sh')
@app.command('show')
@app.command('sh', hidden=True)
def show(
ctx: typer.Context,
video: Annotated[
@@ -136,7 +136,8 @@ def show(
console.out.print(profile_table)
@app.command('profile | pr')
@app.command('profile')
@app.command('pr', hidden=True)
def profile(
ctx: typer.Context,
category: Annotated[
@@ -182,7 +183,8 @@ def profile(
)
@app.command('stream-service | ss')
@app.command('stream-service')
@app.command('ss', hidden=True)
def stream_service(
ctx: typer.Context,
type_: Annotated[
@@ -249,7 +251,8 @@ def stream_service(
console.out.print('Stream service settings updated.')
@app.command('video | vi')
@app.command('video')
@app.command('vi', hidden=True)
def video(
ctx: typer.Context,
base_width: Annotated[