Compare commits
No commits in common. "761e38fd8ef64235da3f0614a615c2ea75056ba7" and "a7fab72a1e26dbf33aec6e51d42cf817773c8e7f" have entirely different histories.
761e38fd8e
...
a7fab72a1e
@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const defaultUserAgent = "lifx-go"
|
||||
const defaultUserAgent = "go-lifx"
|
||||
|
||||
type (
|
||||
Client struct {
|
||||
|
14
cmd/main.go
14
cmd/main.go
@ -6,17 +6,14 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
lifx "git.kill0.net/chill9/lume"
|
||||
"github.com/BurntSushi/toml"
|
||||
)
|
||||
|
||||
var userAgent string
|
||||
const userAgent = "lume"
|
||||
|
||||
func init() {
|
||||
userAgent = initUserAgent()
|
||||
|
||||
RegisterCommand("help", Command{
|
||||
Func: HelpCmd,
|
||||
Flags: func() *flag.FlagSet {
|
||||
@ -277,12 +274,3 @@ func getConfigPath() string {
|
||||
|
||||
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