Add support for displaying the user as a column via the 'User' column

This commit is contained in:
David Dworken 2023-08-28 12:19:14 -07:00
parent 3cc6379bc8
commit 66f3dc13ec
No known key found for this signature in database

View File

@ -158,6 +158,8 @@ func buildTableRow(ctx *context.Context, columnNames []string, entry data.Histor
row = append(row, fmt.Sprintf("%d", entry.ExitCode))
case "Command":
row = append(row, entry.Command)
case "User":
row = append(row, entry.LocalUsername)
default:
customColumnValue, err := getCustomColumnValue(ctx, header, entry)
if err != nil {