Documentation
¶
Index ¶
- Constants
- func DirName(name, version string) string
- func EntrypointPath(projectDir string, dep resolver.ResolvedDep) string
- func InstalledPath(projectDir string, dep resolver.ResolvedDep) string
- func List(projectDir string) ([]resolver.ResolvedDep, error)
- func Remove(projectDir string, dep resolver.ResolvedDep) error
Constants ¶
View Source
const StoreDir = ".melon"
Variables ¶
This section is empty.
Functions ¶
func DirName ¶ added in v0.3.6
DirName returns the directory name used inside .melon/ for a dep with the given name and version. Slashes in name are replaced with dashes. e.g. DirName("github.com/alice/xlsx-skill", "1.2.0") -> "github.com-alice-xlsx-skill@1.2.0"
func EntrypointPath ¶
func EntrypointPath(projectDir string, dep resolver.ResolvedDep) string
EntrypointPath returns the absolute path to the dep's entrypoint markdown file.
func InstalledPath ¶
func InstalledPath(projectDir string, dep resolver.ResolvedDep) string
InstalledPath returns the absolute path to dep's installed directory inside .melon/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.