project

package
v0.0.0-...-695a870 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_VAR       = "/tmp/GO_SEQ_PROJECT.txt"
	PROJECTS_META = ".PROJECTS_META.json"
)
View Source
const (
	JOINED_DELETE = "/tmp/.go_seq_projects_joined.md"
	JOINED        = "/tmp/.go_seq_projects_joined.md"
)

Variables

This section is empty.

Functions

func ReadRecent

func ReadRecent(list bool) error

Types

type Project

type Project struct {
	Name          string `json:"name"`
	Owner         string `json:"owner"`
	DefaultBranch string `json:"default_branch"`
	Url           string `json:"repo_url"`
	Issues        []map[string][]todo.Todo
	Location      string `json:"location"`
	NotePath      string `json:"note_path"`
}

func ListProjects

func ListProjects(pt string) ([]Project, error)

func NewProject

func NewProject(localPath string) (*Project, error)

func PickProject

func PickProject(pPath string) *Project

func (*Project) ApplayIssues

func (p *Project) ApplayIssues(token string, existIssue *[]gitIssue)

func (Project) Delete

func (p Project) Delete() error

func (*Project) EditProject

func (p *Project) EditProject() error

func (*Project) FetchGitHubIssues

func (p *Project) FetchGitHubIssues(token string) ([]gitIssue, error)

func (Project) Format

func (p Project) Format() (string, error)

func (Project) GetDate

func (p Project) GetDate() time.Time

func (Project) GetPath

func (p Project) GetPath() string

func (*Project) PrintTodos

func (p *Project) PrintTodos()

func (*Project) SaveProject

func (p *Project) SaveProject() error

func (*Project) WalkProject

func (pr *Project) WalkProject() error

func (Project) Write

func (p Project) Write() error

type ProjectManager

type ProjectManager struct{}

func NewProjectManager

func NewProjectManager() *ProjectManager

func (*ProjectManager) DeleteByTitle

func (pm *ProjectManager) DeleteByTitle(r io.Reader, n *[]Project) error

func (*ProjectManager) GetNotes

func (pm *ProjectManager) GetNotes(p common.Period) ([]Project, error)

func (*ProjectManager) JoinNotesByTitle

func (p *ProjectManager) JoinNotesByTitle(notes *[]Project) (io.Reader, error)

func (*ProjectManager) JoinNotesWithContents

func (p *ProjectManager) JoinNotesWithContents(notes *[]Project) (io.Reader, error)

func (*ProjectManager) Scan

func (pm *ProjectManager) Scan(r io.Reader, scanner ProjectScanner) ([]Project, error)

type ProjectScanner

type ProjectScanner struct {
	// contains filtered or unexported fields
}

func NewDNoteScanner

func NewDNoteScanner(r io.Reader) *ProjectScanner

func (*ProjectScanner) Err

func (s *ProjectScanner) Err() error

func (*ProjectScanner) Note

func (s *ProjectScanner) Note() Project

func (*ProjectScanner) Scan

func (s *ProjectScanner) Scan() bool

Jump to

Keyboard shortcuts

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