Dev a few more operations

* Archive
* Config
* Pull out filter generation (from list) for reuse
This commit is contained in:
2022-01-20 08:51:39 -06:00
parent d597da3b64
commit 54c91f0d3c
6 changed files with 125 additions and 96 deletions

View File

@@ -163,3 +163,11 @@ func (p *Program) GetMostRecentTimer() (*timertxt.Timer, error) {
}
return work, nil
}
func (p *Program) GetTimerString(timer *timertxt.Timer) string {
return fmt.Sprintf("%d. %s", timer.Id, strings.TrimPrefix(timer.String(), "x "))
}
func (p *Program) GetDoneTimerString(timer *timertxt.Timer) string {
return fmt.Sprintf("--. %s", timer.String())
}