Add aliases to commands
This commit is contained in:
parent
55a82add9f
commit
ad288a2be9
@ -121,6 +121,7 @@ app = typer.Typer()
|
||||
|
||||
|
||||
@app.command()
|
||||
@app.command("c", hidden=True)
|
||||
def set_color(
|
||||
id: Annotated[
|
||||
LightID, typer.Argument(help="ID of light.", autocompletion=complete_id)
|
||||
@ -145,6 +146,7 @@ def set_color(
|
||||
|
||||
|
||||
@app.command()
|
||||
@app.command("s", hidden=True)
|
||||
def set_state(
|
||||
id: Annotated[
|
||||
LightID, typer.Argument(help="ID of light.", autocompletion=complete_id)
|
||||
@ -164,6 +166,7 @@ def set_state(
|
||||
|
||||
|
||||
@app.command()
|
||||
@app.command("b", hidden=True)
|
||||
def set_brightness(
|
||||
id: Annotated[
|
||||
LightID, typer.Argument(help="ID of light.", autocompletion=complete_id)
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "huecli"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
description = "Set Philips Hue lights using MQTT"
|
||||
authors = ["Torjus Håkestad <torjus@uio.no>"]
|
||||
license = "MIT"
|
||||
|
Loading…
Reference in New Issue
Block a user