Documentation
¶
Index ¶
- Constants
- Variables
- func GetLinuxDataDir(home string) string
- func GetMacosDataDir(home string) string
- func GetPlatformDataDirectory(os string, home string) (string, error)
- func GetTypstPackagePath() (string, error)
- func GetWindowsDataDir(home string) string
- func ResolveTargetPath(base, src, dst string) (string, error)
- func ResolveUninstallTarget(dataDir string, all bool, ns, pkg, ver string) (string, error)
Constants ¶
View Source
const ( MACOS string = "darwin" WINDOWS string = "windows" LINUX string = "linux" )
Variables ¶
View Source
var ErrInsufficientPackage = errors.New("both package and version must be specified")
View Source
var ErrOperatingSystem = errors.New("unsupported operating system")
Functions ¶
func GetPlatformDataDirectory ¶
Get the Path to the systems data directory
func GetTypstPackagePath ¶
Get the path to '$(DATA_DIR)/typst/packages'
If $TYPST_PACKAGE_PATH is set returns it.
func ResolveTargetPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.