Use functional options for the client constructor

This commit is contained in:
2021-02-11 09:16:24 -06:00
parent b643635cf4
commit a7fab72a1e
2 changed files with 20 additions and 4 deletions

View File

@ -223,7 +223,10 @@ func Main(args []string) (int, error) {
command := args[1]
c := lifx.NewClientWithUserAgent(config.AccessToken, userAgent)
c := lifx.NewClient(
config.AccessToken,
lifx.WithUserAgent(userAgent),
)
cmdArgs := CmdArgs{
Client: c,