forked from toolshed/abra
		
	fix: respect --type/-t logic for app listing
Reverts c27376c89b. Woops.
			
			
This commit is contained in:
		| @ -64,8 +64,11 @@ var appListCommand = &cli.Command{ | |||||||
| 		table := createTable(tableCol) | 		table := createTable(tableCol) | ||||||
| 		table.SetAutoMergeCellsByColumnIndex([]int{0}) | 		table.SetAutoMergeCellsByColumnIndex([]int{0}) | ||||||
| 		for _, app := range apps { | 		for _, app := range apps { | ||||||
|  | 			if app.Type == Type || Type == "" { | ||||||
|  | 				// If type flag is set, check for it, if not, Type == "" | ||||||
| 				table.Append([]string{app.File.Server, app.Type, app.Domain}) | 				table.Append([]string{app.File.Server, app.Type, app.Domain}) | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
| 		table.Render() | 		table.Render() | ||||||
| 		return nil | 		return nil | ||||||
| 	}, | 	}, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user