1
1
"""On Command Line Interface.
2
2
3
- This module implements the 'on' subcommand for turning lights on with a
4
- specified color. It includes special handling for Kuando lights that require
5
- keepalive tasks to maintain their connection.
3
+ This module implements the 'on' subcommand for turning lights on with
4
+ a specified color. It includes special handling for Kuando lights that
5
+ require keepalive tasks to maintain their connection.
6
6
7
7
The command supports:
8
8
- Basic color specification (named colors, hex values, RGB tuples)
16
16
busylight on red
17
17
busylight on "#ff0000"
18
18
busylight on --color green
19
+
19
20
"""
20
21
21
22
from typing import Optional
@@ -48,10 +49,6 @@ def activate_lights(
48
49
) -> None :
49
50
"""Activate lights with a specified color.
50
51
51
- :param ctx: Typer context containing global options and controller
52
- :param color: Color specification (name, hex, or RGB tuple)
53
- :param led: Target LED index for multi-LED devices
54
-
55
52
This command turns on the selected lights with the specified color.
56
53
For devices with multiple LEDs (like Blink1 mk2), use --led to target
57
54
specific LEDs: 0=all LEDs, 1=first/top LED, 2=second/bottom LED, etc.
@@ -69,7 +66,6 @@ def activate_lights(
69
66
70
67
busylight on red
71
68
busylight on "#ff0000"
72
- busylight on "rgb(255,0,0)"
73
69
74
70
Target specific LEDs on multi-LED devices::
75
71
0 commit comments