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