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"}
|
||||
table := createTable(tableCol)
|
||||
for _, appName := range SortByAppName(appSpecs) {
|
||||
appSpec := appSpecs[appName]
|
||||
status := fmt.Sprintf("%v", appSpec.Features.Status)
|
||||
tableRow := []string{appSpec.Name, appSpec.Category, status}
|
||||
for _, name := range SortByAppName(apps) {
|
||||
app := apps[name]
|
||||
status := fmt.Sprintf("%v", app.Features.Status)
|
||||
tableRow := []string{app.Name, app.Category, status}
|
||||
table.Append(tableRow)
|
||||
}
|
||||
table.Render()
|
||||
|
|
Loading…
Reference in New Issue