mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-26 02:03:37 +01:00
Add support for displaying the user as a column via the 'User' column
This commit is contained in:
parent
3cc6379bc8
commit
66f3dc13ec
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user