add usage to every command

This commit is contained in:
Ryan Cavicchioni 2020-08-07 18:44:36 -05:00
parent 4325398ca8
commit 617c2fccf9
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
5 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@ func init() {
RegisterCommand(cmdName, Command{
Func: LsCmd,
Flags: fs,
Use: "[--selector=<selector>",
})
}

View File

@ -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]",
})
}

View File

@ -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]",
})
}

View File

@ -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]",
})
}

View File

@ -18,6 +18,7 @@ func init() {
RegisterCommand(cmdName, Command{
Func: ToggleCmd,
Flags: fs,
Use: "[--selector <selector>] [--duration <sec>]",
})
}