add usage to every command
This commit is contained in:
parent
4325398ca8
commit
617c2fccf9
@ -17,6 +17,7 @@ func init() {
|
|||||||
RegisterCommand(cmdName, Command{
|
RegisterCommand(cmdName, Command{
|
||||||
Func: LsCmd,
|
Func: LsCmd,
|
||||||
Flags: fs,
|
Flags: fs,
|
||||||
|
Use: "[--selector=<selector>",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ func init() {
|
|||||||
RegisterCommand(cmdName, Command{
|
RegisterCommand(cmdName, Command{
|
||||||
Func: SetColorCmd,
|
Func: SetColorCmd,
|
||||||
Flags: fs,
|
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{
|
RegisterCommand(cmdName, Command{
|
||||||
Func: SetStateCmd,
|
Func: SetStateCmd,
|
||||||
Flags: fs,
|
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{
|
RegisterCommand(cmdName, Command{
|
||||||
Func: SetWhiteCmd,
|
Func: SetWhiteCmd,
|
||||||
Flags: fs,
|
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{
|
RegisterCommand(cmdName, Command{
|
||||||
Func: ToggleCmd,
|
Func: ToggleCmd,
|
||||||
Flags: fs,
|
Flags: fs,
|
||||||
|
Use: "[--selector <selector>] [--duration <sec>]",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user