Documentation ¶
Overview ¶
////////////////////////////////////////////////////////////////////////////// //////// Maintains a list of projects visited by the user. /////////////////// //////// Author: drellem Date: 2022-10-15 /////////////////// //////////////////////////////////////////////////////////////////////////////
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectFileName string
Functions ¶
func RemoveSaveFile ¶
func RemoveSaveFile()
func SaveProjects ¶
func SaveProjects()
func Visit ¶
func Visit(req VisitRequest) (*VisitResponse, *ErrorResponse)
If the path is within an existing project, returns the project. Otherwise traverses parent directories and creates a project if one is found.
Types ¶
type ErrorResponse ¶
type ProjectsSave ¶
type ProjectsSave struct {
Projects []Project `json:"projects"`
}
type VisitRequest ¶
type VisitRequest struct {
Path string `json:"path"`
}
type VisitResponse ¶
type VisitResponse struct {
ParentProject Project `json:"project"`
}
Click to show internal directories.
Click to hide internal directories.