Commit Graph

31 Commits

Author SHA1 Message Date
05db35cdfe
Remove global flags 2021-03-30 21:04:57 -05:00
de93716b20
Fix context variable name 2021-03-30 13:33:36 -05:00
9338631de9
Add debug output support 2021-03-29 17:22:22 -05:00
a4638db773
Make configuration global, add helper functions 2021-03-29 17:21:12 -05:00
b1a5844b6b
Add support for parsing global flags 2021-03-28 21:33:43 -05:00
1ef900c44c
Add breathe effect command 2021-03-25 09:46:58 -05:00
57983b5a52
s/CmdArgs/Context/g 2021-03-16 19:23:50 -05:00
454bfbf61d
Merge environment variables into Config 2021-03-16 19:09:53 -05:00
dfa5d41a6d
Add a default configuration 2021-03-15 22:26:19 -05:00
32bce4eaba
Add functions to load configuration 2021-03-14 22:11:12 -05:00
804ec99021
Move configuration code to seperate file 2021-03-13 23:51:08 -06:00
94cc596afa
Add git commit to version output 2021-03-10 21:39:47 -06:00
518e304948
Add support for nil flag sets 2021-03-03 23:31:27 -06:00
38ab315a9b
Add build date to LDFLAGS 2021-03-02 20:50:21 -06:00
4d3074fa14
Use LDFLAGS to set build version 2021-03-02 00:44:18 -06:00
0fac4a3c14
Add version command 2021-02-27 22:42:09 -06:00
c9e4d9af80
Improve command loading 2021-02-16 23:24:32 -06:00
272ae7cd01
Add show command 2021-02-14 23:06:12 -06:00
cf8b34fe01
Move client library to separate repo
git.kill0.net/chill9/lifx-go
2021-02-14 19:02:26 -06:00
761e38fd8e
Add version to user agent 2021-02-13 18:42:47 -06:00
a7fab72a1e
Use functional options for the client constructor 2021-02-11 09:16:24 -06:00
b643635cf4
Make the user agent configurable 2021-02-10 22:16:15 -06:00
d8be978ba8
Pass command name to CmdArgs struct 2021-02-07 17:31:19 -06:00
9360df727a
Consolidate subcommand registration 2021-02-02 20:25:19 -06:00
0cbd256b86
Print help if no subcommand is given.
Closes #4
2021-01-31 20:31:00 -06:00
320815293d
ExitFailure matches stdlib.h 2021-01-31 11:08:24 -06:00
743d0eed7c
Show error from TOML library when parsing fails 2021-01-24 19:21:54 -06:00
c3495ac57a
Add method to validate configuration 2021-01-20 23:26:33 -06:00
b9e98679a1
Refactor CLI exit code and error handling 2021-01-20 23:26:33 -06:00
2da3bcc2ff
Return error codes instead of exiting from Main() 2021-01-20 23:26:33 -06:00
4c6c3744c9
Move lume main into the lumecmd package 2021-01-20 23:26:33 -06:00