refactor: better naming for loop scoped variables
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
381de28e83
commit
fce1ab6c02
|
@ -163,10 +163,10 @@ var recipeListCommand = &cli.Command{
|
||||||
}
|
}
|
||||||
tableCol := []string{"Name", "Category", "Status"}
|
tableCol := []string{"Name", "Category", "Status"}
|
||||||
table := createTable(tableCol)
|
table := createTable(tableCol)
|
||||||
for _, appName := range SortByAppName(appSpecs) {
|
for _, name := range SortByAppName(apps) {
|
||||||
appSpec := appSpecs[appName]
|
app := apps[name]
|
||||||
status := fmt.Sprintf("%v", appSpec.Features.Status)
|
status := fmt.Sprintf("%v", app.Features.Status)
|
||||||
tableRow := []string{appSpec.Name, appSpec.Category, status}
|
tableRow := []string{app.Name, app.Category, status}
|
||||||
table.Append(tableRow)
|
table.Append(tableRow)
|
||||||
}
|
}
|
||||||
table.Render()
|
table.Render()
|
||||||
|
|
Reference in New Issue