api

package
v0.0.0-...-faa9d53 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsAPI

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

func NewFsAPI

func NewFsAPI(fs afero.Fs) *FsAPI

func (*FsAPI) Exists

func (f *FsAPI) Exists(path string) (bool, error)

func (*FsAPI) FilePathSeparator

func (f *FsAPI) FilePathSeparator() string

func (*FsAPI) Mkdir

func (f *FsAPI) Mkdir(path string) error

func (*FsAPI) MkdirAll

func (f *FsAPI) MkdirAll(path string) error

func (*FsAPI) ReadFile

func (f *FsAPI) ReadFile(path string) (string, error)

func (*FsAPI) Walk

func (f *FsAPI) Walk(root string, fc func(path string, info os.FileInfo, err error) error) error

func (*FsAPI) WriteFile

func (f *FsAPI) WriteFile(path string, data string, force bool) error

type PlisAPI

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

func NewPlisAPI

func NewPlisAPI(cmd *cobra.Command) *PlisAPI

func (*PlisAPI) ForceOverride

func (p *PlisAPI) ForceOverride(b bool)

func (*PlisAPI) Help

func (p *PlisAPI) Help()

func (*PlisAPI) RunPlisTool

func (p *PlisAPI) RunPlisTool(tool string, s []string) error

type PlisTemplateLoader

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

func (*PlisTemplateLoader) Abs

func (ptl *PlisTemplateLoader) Abs(base, name string) string

func (*PlisTemplateLoader) Get

func (ptl *PlisTemplateLoader) Get(path string) (io.Reader, error)

type TemplateAPI

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

func NewTemplatesAPI

func NewTemplatesAPI(templateFs *FsAPI, currentFs *FsAPI) *TemplateAPI

func (*TemplateAPI) CopyTemplate

func (t *TemplateAPI) CopyTemplate(name string, destination string, model map[string]interface{}) error

func (*TemplateAPI) CopyTemplateFolder

func (t *TemplateAPI) CopyTemplateFolder(folder string, destination string, model map[string]interface{}, excludes []string) error

func (*TemplateAPI) ReadTemplate

func (t *TemplateAPI) ReadTemplate(name string, model map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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