Commit Graph

143 Commits

Author SHA1 Message Date
de0bc2e133 Show rumtime information in version output 2021-03-02 00:44:38 -06:00
4d3074fa14 Use LDFLAGS to set build version 2021-03-02 00:44:18 -06:00
c8d0d306e4 Add quiet flag to del 2021-03-02 00:40:22 -06:00
8a7e99234f Add Windows support to Makefile 2021-03-01 22:59:11 -06:00
bfb949ca5f Ignore VSCode logs files 2021-03-01 22:58:25 -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
dd0bf763a3 Add PrintfWithIndent function 2021-02-16 20:20:18 -06:00
01086e3c22 Formatting changes for the show command 2021-02-15 19:46:13 -06:00
63bbbcecf7 Add pre-release tag 2021-02-15 19:30:25 -06:00
862b70316f Add MPL-2 licesne file 2021-02-14 23:17:02 -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
e0a658edf7 Minor change to library user agent 2021-02-13 18:42:07 -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
8e7ff7f39a Validate flags before running the command 2021-02-07 17:38:49 -06:00
8c6567bc8a Using os.Args is not necessary 2021-02-07 17:31:57 -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
4e25579718 Sort commands in help output
Closes #5
2021-02-02 20:24:57 -06:00
0cbd256b86 Print help if no subcommand is given.
Closes #4
2021-01-31 20:31:00 -06:00
9321095e11 Clean up subcommand registrations 2021-01-31 19:40:27 -06:00
320815293d ExitFailure matches stdlib.h 2021-01-31 11:08:24 -06:00
ec673a6fde Return usage error if no color is provided 2021-01-24 20:50:10 -06:00
f2da3dadd7 Whitespace fix 2021-01-24 20:49:22 -06:00
211de24485 Add helper to print subcommand help 2021-01-24 20:48:38 -06:00
743d0eed7c Show error from TOML library when parsing fails 2021-01-24 19:21:54 -06:00
b1894b38de Validate colors from configuration file 2021-01-24 19:21:44 -06:00
1ac9487c76 Add sample colors to sample .lumerc 2021-01-24 19:21:17 -06:00
8364201d7b Add helper method to exit with error code 2021-01-20 23:26:33 -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
c816ee43e1 Fix import alias 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
84c1be5054 Print error if .lumerc cannot be found 2021-01-20 23:26:32 -06:00
1e4a5f988e Use snake case in the configuration file 2021-01-20 23:26:32 -06:00
e8abc45377 Add poweron and poweroff commands 2021-01-20 23:26:32 -06:00
6e1863f374 Add CLI output sort functions 2021-01-20 23:26:32 -06:00
d0691362d8 Use a map to track column widths 2021-01-20 23:26:32 -06:00
715fb435e1 Refactor configuration file loading 2021-01-20 23:26:31 -06:00
63631be598 Fix composite literal uses unkeyed fields 2021-01-20 23:26:31 -06:00
30fae38ad1 Move Windows console hack into constrained file to fix Linux build 2021-01-20 23:26:31 -06:00
c838c28e49 Add .lumerc to .gitignore 2021-01-20 23:26:31 -06:00
af2721720d Remove __debug_bin 2021-01-20 23:26:27 -06:00
1397fbe4a3 Fix help usage 2021-01-10 21:10:08 -06:00
cd3653deef fix ls command usage text 2021-01-10 21:10:03 -06:00
095c7bd995 Move configuration loading to separate function 2021-01-10 21:09:59 -06:00