add usage to every command
This commit is contained in:
parent
4325398ca8
commit
617c2fccf9
@ -17,6 +17,7 @@ func init() {
|
||||
RegisterCommand(cmdName, Command{
|
||||
Func: LsCmd,
|
||||
Flags: fs,
|
||||
Use: "[--selector=<selector>",
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ func init() {
|
||||
RegisterCommand(cmdName, Command{
|
||||
Func: SetColorCmd,
|
||||
Flags: fs,
|
||||
Use: "[--selector <selector>] [--power (on|off)] [--hue <hue>] [--saturation <saturation>] [--rgb <rbg>] [--name <color>] [--brightness <brightness>] [--duration <sec>] [--fast]",
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@ func init() {
|
||||
RegisterCommand(cmdName, Command{
|
||||
Func: SetStateCmd,
|
||||
Flags: fs,
|
||||
Use: "[--selector <selector>] [--power (on|off)] [--color <color>] [--brightness <brightness>] [--duration <sec>] [--infrared <infrared>] [--fast]",
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -38,6 +38,7 @@ func init() {
|
||||
RegisterCommand(cmdName, Command{
|
||||
Func: SetWhiteCmd,
|
||||
Flags: fs,
|
||||
Use: "[--selector <selector>] [--power (on|off)] [--kelvin <kelvin>] [--name <color>] [--brightness <brightness>] [--duration <sec>] [--infrared] [--fast]",
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ func init() {
|
||||
RegisterCommand(cmdName, Command{
|
||||
Func: ToggleCmd,
|
||||
Flags: fs,
|
||||
Use: "[--selector <selector>] [--duration <sec>]",
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user