Add aliases to commands

This commit is contained in:
Torjus Håkestad 2024-06-20 20:17:19 +02:00
parent 55a82add9f
commit ad288a2be9
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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"