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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/tesla-control/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (

"github.com/google/shlex"

"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/account"
"github.com/teslamotors/vehicle-command/pkg/cli"
"github.com/teslamotors/vehicle-command/pkg/connector/ble"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
"github.com/teslamotors/vehicle-command/pkg/vehicle"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/tesla-http-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strconv"
"time"

"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/cli"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
"github.com/teslamotors/vehicle-command/pkg/proxy"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/tesla-keygen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"path/filepath"

"github.com/teslamotors/vehicle-command/internal/authentication"
"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/cli"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/ble/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"runtime"
"time"

debugger "github.com/teslamotors/vehicle-command/internal/log"
debugger "github.com/teslamotors/vehicle-command/pkg/log"

"github.com/teslamotors/vehicle-command/pkg/connector/ble"
"github.com/teslamotors/vehicle-command/pkg/protocol"
Expand Down
2 changes: 1 addition & 1 deletion internal/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/teslamotors/vehicle-command/internal/authentication"
"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/connector"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"

"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion pkg/account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"strings"

"github.com/teslamotors/vehicle-command/internal/authentication"
"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/cache"
"github.com/teslamotors/vehicle-command/pkg/connector"
"github.com/teslamotors/vehicle-command/pkg/connector/inet"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/vehicle"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ import (
"sort"
"strings"

"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/account"
"github.com/teslamotors/vehicle-command/pkg/cache"
"github.com/teslamotors/vehicle-command/pkg/connector/ble"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
"github.com/teslamotors/vehicle-command/pkg/vehicle"

Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/ble/ble.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/go-ble/ble"
"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/connector"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/ble/device_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ble
import (
"github.com/go-ble/ble"
"github.com/go-ble/ble/darwin"
"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/log"
)

func IsAdapterError(_ error) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connector/inet/inet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"sync"
"time"

"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/connector"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/log/logger.go → pkg/log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Level int

const (
LevelNone Level = iota // Disables logging.
LevelError // Logs anamolies that are not expected to occur during normal use.
LevelWarning // Logs anamolies that are expected to occur occasionally during normal use.
LevelError // Logs anomalies that are not expected to occur during normal use.
LevelWarning // Logs anomalies that are expected to occur occasionally during normal use.
LevelInfo // Logs major events.
LevelDebug // Logs detailed IO
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (

"github.com/golang-jwt/jwt/v5"

"github.com/teslamotors/vehicle-command/internal/log"
"github.com/teslamotors/vehicle-command/pkg/account"
"github.com/teslamotors/vehicle-command/pkg/cache"
"github.com/teslamotors/vehicle-command/pkg/connector/inet"
"github.com/teslamotors/vehicle-command/pkg/log"
"github.com/teslamotors/vehicle-command/pkg/protocol"
"github.com/teslamotors/vehicle-command/pkg/sign"
"github.com/teslamotors/vehicle-command/pkg/vehicle"
Expand Down