Add new short name for "ExitCode" - "$?" (#228)

This commit is contained in:
Pavel Griaznov 2024-08-11 18:22:07 +00:00 committed by GitHub
parent a0dc68306b
commit c45e5c0f55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,7 @@ func BuildTableRow(ctx context.Context, columnNames []string, entry data.History
} else {
row = append(row, entry.EndTime.Local().Sub(entry.StartTime.Local()).Round(time.Millisecond).String())
}
case "Exit Code", "Exit_Code", "ExitCode", "exitcode":
case "Exit Code", "Exit_Code", "ExitCode", "exitcode", "$?", "EC":
row = append(row, fmt.Sprintf("%d", entry.ExitCode))
case "Command", "command":
row = append(row, commandRenderer(entry.Command))