Drop command

This commit is contained in:
Dan Jones 2024-02-11 13:50:27 -06:00
commit cc9e8f6167
6 changed files with 214 additions and 23 deletions

View file

@ -20,6 +20,10 @@ type Entry struct {
skipMissing bool
}
func PartialEntry() Entry {
return Entry{skipMissing: true}
}
type metaRes struct {
out []byte
err error
@ -68,7 +72,7 @@ func (e Entry) MarshalText() ([]byte, error) {
}
ch := e.getFieldMarshalChan()
buff := &bytes.Buffer{}
buff.WriteString("@begin ")
buff.WriteString("\n@begin ")
buff.WriteString(e.Date.Format(DateFormat))
buff.WriteString(" - ")
buff.WriteString(e.Title)