tools

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ThemeCacheTTL = 7 * 24 * time.Hour

Variables

This section is empty.

Functions

func CloneTheme

func CloneTheme(repo, path, revision string, markers ...string) (bool, error)

CloneTheme clones repo into path at revision and reports whether a clone was performed. Existing directories are reused immediately when no markers are supplied. When markers such as package.json are supplied, every marker must exist; otherwise only an empty directory is safe to clone into. Revision may be empty to use the repository's default branch.

func CloneThemeCached added in v0.4.0

func CloneThemeCached(repo, path, revision string, markers ...string) (bool, error)

func DirExist

func DirExist(path string) (bool, error)

func EscapeTOMLString

func EscapeTOMLString(s string) string

EscapeTOMLString escapes a string to be safely embedded in a TOML file.

func PruneThemeCache added in v0.4.0

func PruneThemeCache() (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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