template

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpFileName = "help.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

type DefaultManager struct {
	// contains filtered or unexported fields
}

func (DefaultManager) LangTemplateFiles

func (tm DefaultManager) LangTemplateFiles(lang string) ([]File, error)

func (DefaultManager) Languages

func (tm DefaultManager) Languages() ([]string, error)

func (DefaultManager) ResolverNewPath

func (tm DefaultManager) ResolverNewPath(oldPath, formulaPath, lang, workspacePath string) (string, error)

func (DefaultManager) Validate

func (tm DefaultManager) Validate() error

type File

type File struct {
	Path  string
	IsDir bool
}

type Manager

type Manager interface {
	Languages() ([]string, error)
	LangTemplateFiles(lang string) ([]File, error)
	ResolverNewPath(oldPath, newDir, lang, workspacePath string) (string, error)
	Validate() error
}

func NewManager

func NewManager(ritchieHome string, dir stream.DirChecker) Manager

Jump to

Keyboard shortcuts

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