Esempio n. 1
0
func ProjectsTodos(writer io.Writer, command string, indent int, projects *data.Projects) {
	HeaderSettings(writer)
	HeaderProjects(writer, command, indent+1, projects)
	for _, project := range projects.List() {
		ProjectTodos(writer, indent+1, &project)
	}
}
Esempio n. 2
0
func (store FolderStore) PopulateProjects(projects *data.Projects) error {
	for _, project := range projects.List() {
		filled, err := store.GetProject(project.Name)
		if err != nil {
			return errgo.Notef(err, "can not get project: "+project.Name.String())
		}

		projects.Set(filled)
	}

	return nil
}