mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-26 10:13:44 +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))
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user