mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-13 00:37:21 +02:00
Add support for displaying the user as a column via the 'User' column
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user