files

package
v0.0.0-...-260dfa6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDir   SystemDir = "related"
	ProjectDir  SystemDir = ".related"
	TemplateDir TypeDir   = "templates"
	ScriptDir   TypeDir   = "scripts"
)

Variables

This section is empty.

Functions

func FindFile

func FindFile(name string, dir TypeDir) (string, fs.FS)

FindFile finds a given template or script file within all available filesystems and returns the first result including the filesystem. Search order: project, user config, embedded.

func NormalizeForFS

func NormalizeForFS(in string) string

func SetConfigDir

func SetConfigDir(dir string)

func Systems

func Systems() []fs.FS

Types

type SystemDir

type SystemDir string

type TypeDir

type TypeDir string

Jump to

Keyboard shortcuts

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