Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
return dockma home dir only
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Mar 3, 2020
1 parent 39a4554 commit c7ee110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/commands/configcmd/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package configcmd
import (
"fmt"

"github.com/martinnirtl/dockma/internal/config"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/ttacon/chalk"
)

func getHomeCommand() *cobra.Command {
Expand All @@ -20,5 +19,5 @@ func getHomeCommand() *cobra.Command {
}

func runHomeCommand(cmd *cobra.Command, args []string) {
fmt.Printf("Dockma config home dir: %s\n", chalk.Cyan.Color(viper.GetString("home")))
fmt.Println(config.GetHomeDir())
}

0 comments on commit c7ee110

Please sign in to comment.