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

Commit

Permalink
rm logfile from being configured in cfg command
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Feb 24, 2020
1 parent b480dc7 commit 4733b4d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/commands/configcmd/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ttacon/chalk"
)

var configVars []string = []string{"hidesubcommandoutput", "logfile", "username"}
var configVars []string = []string{"hidesubcommandoutput", "username"}

func getSetCommand() *cobra.Command {
return &cobra.Command{
Expand All @@ -31,7 +31,6 @@ func runSetCommand(cmd *cobra.Command, args []string) {
if len(args) == 0 {
options := []string{
fmt.Sprintf("hidesubcommandoutput: %t", viper.GetBool("hidesubcommandoutput")),
fmt.Sprintf("logfile: %s", viper.GetString("logfile")),
fmt.Sprintf("username: %s", viper.GetString("username")),
}

Expand All @@ -58,11 +57,6 @@ func setConfigVar(varname string) {

viper.Set("hidesubcommandoutput", hide)

case "logfile":
logfile := survey.InputName("Enter name of logfile [stored in Dockma home dir]", viper.GetString("logfile"))

viper.Set("logfile", logfile)

case "username":
username := survey.InputName("Enter new username", viper.GetString("username"))

Expand Down

0 comments on commit 4733b4d

Please sign in to comment.