Remove function exports for profile list output types

pull/5554/head
Josh Woodcock 2019-10-11 14:11:43 -05:00
parent 4a4fa6567a
commit d758672c8b
1 changed files with 4 additions and 4 deletions

View File

@ -43,9 +43,9 @@ 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))
}
@ -53,7 +53,7 @@ var profileListCmd = &cobra.Command{
},
}
func PrintProfilesTable() {
var printProfilesTable = func() {
var validData [][]string
@ -92,7 +92,7 @@ func PrintProfilesTable() {
}
func PrintProfilesJSON() {
var printProfilesJSON = func() {
validProfiles, invalidProfiles, err := config.ListProfiles()
var valid []*config.Profile