Skip to content

Commit

Permalink
chore: clarify type
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jun 4, 2024
1 parent 20afad3 commit b995404
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func runToken(cmd *cobra.Command, args []string) {
vehicleConf.Other = instance.Other
}

switch typ := strings.ToLower(vehicleConf.Type); typ {
typ := strings.ToLower(vehicleConf.Type)

switch typ {
case "mercedes":
token, err = mercedesToken()
case "ford", "ford-connect":
Expand All @@ -82,6 +84,7 @@ func runToken(cmd *cobra.Command, args []string) {
fmt.Println()
fmt.Println("Add the following tokens to the vehicle config:")
fmt.Println()
fmt.Println(" type: " + typ)
fmt.Println(" tokens:")
fmt.Println(" access:", token.AccessToken)
fmt.Println(" refresh:", token.RefreshToken)
Expand Down

0 comments on commit b995404

Please sign in to comment.