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)) row = append(row, fmt.Sprintf("%d", entry.ExitCode))
case "Command": case "Command":
row = append(row, entry.Command) row = append(row, entry.Command)
case "User":
row = append(row, entry.LocalUsername)
default: default:
customColumnValue, err := getCustomColumnValue(ctx, header, entry) customColumnValue, err := getCustomColumnValue(ctx, header, entry)
if err != nil { if err != nil {