Dev a few more operations
* Archive * Config * Pull out filter generation (from list) for reuse
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user