mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-08-05 11:31:44 +00:00
move the version flag
This commit is contained in:
parent
286cda8066
commit
f335d8ffd2
@ -103,17 +103,6 @@ def main(
|
|||||||
show_default=5,
|
show_default=5,
|
||||||
),
|
),
|
||||||
] = settings.get('timeout'),
|
] = settings.get('timeout'),
|
||||||
version: Annotated[
|
|
||||||
bool,
|
|
||||||
typer.Option(
|
|
||||||
'--version',
|
|
||||||
'-v',
|
|
||||||
is_eager=True,
|
|
||||||
help='Show the CLI version and exit',
|
|
||||||
show_default=False,
|
|
||||||
callback=version_callback,
|
|
||||||
),
|
|
||||||
] = False,
|
|
||||||
style: Annotated[
|
style: Annotated[
|
||||||
str,
|
str,
|
||||||
typer.Option(
|
typer.Option(
|
||||||
@ -135,6 +124,17 @@ def main(
|
|||||||
show_default=False,
|
show_default=False,
|
||||||
),
|
),
|
||||||
] = settings.get('style_no_border'),
|
] = settings.get('style_no_border'),
|
||||||
|
version: Annotated[
|
||||||
|
bool,
|
||||||
|
typer.Option(
|
||||||
|
'--version',
|
||||||
|
'-v',
|
||||||
|
is_eager=True,
|
||||||
|
help='Show the CLI version and exit',
|
||||||
|
show_default=False,
|
||||||
|
callback=version_callback,
|
||||||
|
),
|
||||||
|
] = False,
|
||||||
debug: Annotated[
|
debug: Annotated[
|
||||||
bool,
|
bool,
|
||||||
typer.Option(
|
typer.Option(
|
||||||
@ -151,7 +151,9 @@ def main(
|
|||||||
):
|
):
|
||||||
"""obsws_cli is a command line interface for the OBS WebSocket API."""
|
"""obsws_cli is a command line interface for the OBS WebSocket API."""
|
||||||
ctx.ensure_object(dict)
|
ctx.ensure_object(dict)
|
||||||
ctx.obj['obsws'] = ctx.with_resource(obsws.ReqClient(**ctx.params))
|
ctx.obj['obsws'] = ctx.with_resource(
|
||||||
|
obsws.ReqClient(host=host, port=port, password=password, timeout=timeout)
|
||||||
|
)
|
||||||
ctx.obj['style'] = styles.request_style_obj(style, no_border)
|
ctx.obj['style'] = styles.request_style_obj(style, no_border)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user