Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/api/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"

// Packages
"github.com/djthorpe/go-tablewriter"
"github.com/mutablelogic/go-client"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/api/homeassistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"context"
"maps"
"slices"
"strings"
"time"

// Packages
"github.com/djthorpe/go-tablewriter"
"github.com/mutablelogic/go-client"
"github.com/mutablelogic/go-client/pkg/homeassistant"
"golang.org/x/exp/maps"
)

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -129,7 +130,7 @@ func haDomains(_ context.Context, w *tablewriter.Writer, args []string) error {
var services []string
if domain, exists := map_domains[c]; exists {
if v := domain.Services; v != nil {
services = maps.Keys(v)
services = slices.Collect(maps.Keys(v))
}
}
result = append(result, haDomain{
Expand Down
5 changes: 4 additions & 1 deletion cmd/api/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ func install(flags *Flags) error {
}

func statEquals(a, b os.FileInfo) bool {
return a.Size() == b.Size() && a.ModTime() == b.ModTime()
if a == nil || b == nil {
return false
}
return a.Size() == b.Size() && a.ModTime().Equal(b.ModTime())
}
1 change: 1 addition & 0 deletions cmd/api/newsapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strconv"
"strings"

// Packages
"github.com/djthorpe/go-tablewriter"
"github.com/mutablelogic/go-client"
"github.com/mutablelogic/go-client/pkg/newsapi"
Expand Down
1 change: 1 addition & 0 deletions cmd/api/weatherapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"

// Packages
"github.com/djthorpe/go-tablewriter"
"github.com/mutablelogic/go-client"
"github.com/mutablelogic/go-client/pkg/weatherapi"
Expand Down
100 changes: 0 additions & 100 deletions etc/_cli/command.go

This file was deleted.

125 changes: 0 additions & 125 deletions etc/_cli/elevenlabs.go

This file was deleted.

Loading
Loading