From ad288a2be99d2febf2fdb1db2ed7d8aea9ec18c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 20 Jun 2024 20:17:19 +0200 Subject: [PATCH] Add aliases to commands --- huecli/__main__.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/huecli/__main__.py b/huecli/__main__.py index ea0854b..2a8280a 100644 --- a/huecli/__main__.py +++ b/huecli/__main__.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 496e01b..27f9dc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT"