Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProjectsFile = "projects.json" ScriptsFolder = "scripts" ResultsFolder = "results" QueryPrompt = "QUERY_PROMPT.md" )
Variables ¶
This section is empty.
Functions ¶
func CloneRepository ¶
CloneRepository either clones the repository if not present or pulls the latest changes if already cloned.
func ExtractTypeScriptCode ¶
extractTypeScriptCode finds the first ```ts or ```typescript code block in a string and returns its contents.
func SaveProjects ¶
func SaveProjects(projects *ProjectsJSON) error
SaveProjects writes the ProjectsJSON struct to projects.json.
Types ¶
type Project ¶
type Project struct {
Name string `json:"name"`
Path string `json:"path"`
RepoURL string `json:"repoUrl"`
Topics []string `json:"topics"`
Skip bool `json:"skip,omitempty"`
Metadata interface{} `json:"metadata,omitempty"`
}
Project and ProjectsJSON store information about cloned repos
func FilterProjectsByTopics ¶
func InProject ¶ added in v0.3.41
func InProject(pj *ProjectsJSON) *Project
type ProjectsJSON ¶
func LoadProjects ¶
func LoadProjects() (*ProjectsJSON, error)
Click to show internal directories.
Click to hide internal directories.