Skip to content

Commit

Permalink
Cleanup various debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrider committed Dec 22, 2018
1 parent 1835485 commit 7dcc5de
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion cmd/addons_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsInstalCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_rebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsRebuildCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsRestartCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsStartCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsStopCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsUninstallCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/addons_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var addonsUpdateCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmd

import (
"fmt"
"strings"

"github.com/home-assistant/hassio-cli/client"
Expand Down Expand Up @@ -77,7 +76,7 @@ func initConfig() {
viper.AutomaticEnv()

// bind to current api token ENV variable
fmt.Println(viper.BindEnv("api-token", "HASSIO_TOKEN"))
viper.BindEnv("api-token", "HASSIO_TOKEN")

// set loglevel if posible
logLevel, err := log.ParseLevel(viper.GetString("log-level"))
Expand Down
1 change: 0 additions & 1 deletion cmd/snapshots_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var snapshotsRemoveCmd = &cobra.Command{
base := viper.GetString("endpoint")

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down
1 change: 0 additions & 1 deletion cmd/snapshots_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ var snapshotsRestoreCmd = &cobra.Command{
}

url, err := helper.URLHelper(base, section, command)
fmt.Println(url)
if err != nil {
fmt.Println(err)
return
Expand Down

0 comments on commit 7dcc5de

Please sign in to comment.