Skip to content

Commit

Permalink
Remove function exports for profile list output types
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Woodcock committed Oct 17, 2019
1 parent 4a4fa65 commit d758672
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/minikube/cmd/config/profile_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ var profileListCmd = &cobra.Command{

switch strings.ToLower(output) {
case "json":
PrintProfilesJSON()
printProfilesJSON()
case "table":
PrintProfilesTable()
printProfilesTable()
default:
exit.WithCodeT(exit.BadUsage, fmt.Sprintf("invalid output format: %s. Valid values: 'table', 'json'", output))
}

},
}

func PrintProfilesTable() {
var printProfilesTable = func() {

var validData [][]string

Expand Down Expand Up @@ -92,7 +92,7 @@ func PrintProfilesTable() {

}

func PrintProfilesJSON() {
var printProfilesJSON = func() {
validProfiles, invalidProfiles, err := config.ListProfiles()

var valid []*config.Profile
Expand Down

0 comments on commit d758672

Please sign in to comment.