Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProject ¶
AddProject adds JSON representation of new project in ~/.pms.json
func DeleteProjet ¶
DeleteProjet deletes JSON representation of project from ~/.pms.json
func ReadConfig ¶
func ReadConfig() (c config)
ReadConfig returns go struct of config file at ~/.pms.json
func UpdateProjectList ¶
UpdateProjectList writes JSON representation of projects to ~/.pms.json
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Main Model
func (Model) DeleteItem ¶
DeleteItem deletes the selected project from the config file.
func (Model) OpenInEditor ¶
OpenInEditor opens the selected project in the default editor.
func (*Model) Update ¶
Update updates the model on an event like a key press. Also sets the TUI window size.
func (Model) UpdateList ¶
UpdateList updates the list with the selected project on top.
type Project ¶
Custom Type
func (Project) Description ¶
Description returns the path of the project.
func (Project) FilterValue ¶
FilterValue allows us to filter the options by name.