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 11, 2019
1 parent f116777 commit 1c78eff
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()
printJSON()
case "table":
PrintProfilesTable()
printTable()
default:
exit.WithCodeT(exit.BadUsage, fmt.Sprintf("invalid output format: %s. Valid values: 'table', 'json'", output))
}

},
}

func PrintProfilesTable() {
var printTable = func() {

var validData [][]string

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

}

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

var valid []*config.Profile
Expand Down

0 comments on commit 1c78eff

Please sign in to comment.