Refactor CLI exit code and error handling

This commit is contained in:
2021-01-17 21:08:13 -06:00
parent 5cc5be7846
commit e024b45e0a
11 changed files with 47 additions and 35 deletions

View File

@ -8,6 +8,11 @@ import (
lifx "git.kill0.net/chill9/lume"
)
const (
ExitSuccess = iota
ExitError
)
type Config struct {
AccessToken string `toml:"access_token"`
Colors map[string][]float32 `toml:"colors"`