Add aliases to commands
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user