Compare commits
No commits in common. "761e38fd8ef64235da3f0614a615c2ea75056ba7" and "a7fab72a1e26dbf33aec6e51d42cf817773c8e7f" have entirely different histories.
761e38fd8e
...
a7fab72a1e
@ -13,7 +13,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultUserAgent = "lifx-go"
|
const defaultUserAgent = "go-lifx"
|
||||||
|
|
||||||
type (
|
type (
|
||||||
Client struct {
|
Client struct {
|
||||||
|
14
cmd/main.go
14
cmd/main.go
@ -6,17 +6,14 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
|
||||||
|
|
||||||
lifx "git.kill0.net/chill9/lume"
|
lifx "git.kill0.net/chill9/lume"
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
)
|
)
|
||||||
|
|
||||||
var userAgent string
|
const userAgent = "lume"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
userAgent = initUserAgent()
|
|
||||||
|
|
||||||
RegisterCommand("help", Command{
|
RegisterCommand("help", Command{
|
||||||
Func: HelpCmd,
|
Func: HelpCmd,
|
||||||
Flags: func() *flag.FlagSet {
|
Flags: func() *flag.FlagSet {
|
||||||
@ -277,12 +274,3 @@ func getConfigPath() string {
|
|||||||
|
|
||||||
return configPath
|
return configPath
|
||||||
}
|
}
|
||||||
|
|
||||||
func initUserAgent() string {
|
|
||||||
var b strings.Builder
|
|
||||||
|
|
||||||
b.WriteString("lume")
|
|
||||||
b.WriteRune('/')
|
|
||||||
b.WriteString(Version)
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
package lumecmd
|
|
||||||
|
|
||||||
const Version = "0.1.0"
|
|
Loading…
Reference in New Issue
Block a user