Rich Enhanced Shell History - Contextual shell history for zsh and bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
resh/internal/recconv/recconv.go

35 lines
590 B

package recconv
import (
"github.com/curusarn/resh/internal/record"
)
func LegacyToV1(r *record.Legacy) *record.V1 {
return &record.V1{
// FIXME: fill in all the fields
// Flags: 0,
DeviceID: r.MachineID,
SessionID: r.SessionID,
RecordID: r.RecordID,
CmdLine: r.CmdLine,
ExitCode: r.ExitCode,
Home: r.Home,
Pwd: r.Pwd,
RealPwd: r.RealPwd,
Logname: r.Login,
Hostname: r.Host,
GitOriginRemote: r.GitOriginRemote,
Time: r.RealtimeBefore,
Duration: r.RealtimeDuration,
PartOne: r.PartOne,
PartsNotMerged: !r.PartsMerged,
}
}