project

package
v0.0.0-...-0863c57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

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 Add

func Add(p *Project)

func AddAll

func AddAll(ps []Project)

func Init

func Init()

func RemoveSaveFile

func RemoveSaveFile()

func SaveProjects

func SaveProjects()

func Visit

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 ErrorResponse struct {
	Code    int
	Message string `json:"errorString"`
}

type Project

type Project struct {
	Id   int    `json:"id"`
	Path string `json:"path"`
}

func Projects

func Projects() []Project

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL