Add GetTag & HasTag Functions

This commit is contained in:
Brian Buller 2023-09-12 09:20:17 -05:00
parent 73e7cad897
commit d3c848c980
1 changed files with 9 additions and 0 deletions

View File

@ -279,3 +279,12 @@ func (todo *Todo) HasProject(proj string) bool {
}
return false
}
func (todo *Todo) HasTag(name string) bool {
_, ok := todo.AdditionalTags[name]
return ok
}
func (todo *Todo) GetTag(name string) string {
return todo.AdditionalTags[name]
}