lib

package
v0.0.0-...-cae3db3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDirectory

func ChangeDirectory(name string, last bool) error

ChangeDirectory is a function that changes the current working directory to the project directory specified by the name.

func FindProjects

func FindProjects(name string) <-chan string

FindProjects is a function that searches for the projects with a filter. If the filter is empty, it returns all the projects found in the directories specified in the configuration file.

func GetFullPathOfDirs

func GetFullPathOfDirs() ([]string, error)

GetFullPathOfDirs is a function that returns the full path of the directories specified in the configuration file. It assumes that the directories are relative to the home directory.

func GetProjectPath

func GetProjectPath(name string, last bool) (string, error)

GetProjectPath is a function that returns the project path retrieved from finder.

func ReadLastProject

func ReadLastProject() (string, error)

ReadLastProject is a function that reads the last project from the $HOME/.local/share/cdp_last file.

func WriteLastProject

func WriteLastProject(projectPath string) error

WriteLastProject is a function that writes the last project to the $HOME/.local/share/cdp_last file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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