Rework to match other .txt projects

This commit is contained in:
2023-08-23 11:22:19 -05:00
parent d7904bcba2
commit c0e6b72ed3
2 changed files with 34 additions and 32 deletions

View File

@@ -7,15 +7,15 @@ import (
)
type Project struct {
Id int // Internal project id
Original string // Original raw project text
Name string // The name of the project
Directory string // The directory part of the project text
Notes string // The filename of the notes file, defaults to Directory+/+notes.md
Repo string // The directory to the git repository, defaults to Directory+/+Name
Contexts []string
ProjectTags []string
AdditionalTags map[string]string
Id int `json:"id"` // Internal project id
Original string `json:"original"` // Original raw project text
Name string `json:"name"` // The name of the project
Directory string `json:"directory"` // The directory part of the project text
Notes string `json:"notes"` // The filename of the notes file, defaults to Directory+/+notes.md
Repo string `json:"repo"` // The directory to the git repository, defaults to Directory+/+Name
Contexts []string `json:"contexts"`
ProjectTags []string `json:"projectTags"`
AdditionalTags map[string]string `json:"additionalTags"`
}
// ParseProject parses the input text string into a Project struct