mirror of
				https://github.com/taigrr/wtf
				synced 2025-01-18 04:03:14 -08:00 
			
		
		
		
	* Create generalized todo module Makes existing modules "backends" This gives us a consistent interface * Fix check issues * Fix lint errors * Make changes to stay on wtfutil todoist fork
		
			
				
	
	
		
			17 lines
		
	
	
		
			286 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			286 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package backend
 | |
| 
 | |
| import (
 | |
| 	"github.com/olebedev/config"
 | |
| )
 | |
| 
 | |
| type Backend interface {
 | |
| 	Title() string
 | |
| 	Setup(*config.Config)
 | |
| 	BuildProjects() []*Project
 | |
| 	GetProject(string) *Project
 | |
| 	LoadTasks(string) ([]Task, error)
 | |
| 	CloseTask(*Task) error
 | |
| 	DeleteTask(*Task) error
 | |
| 	Sources() []string
 | |
| }
 |