forgeio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TMPL_SUFFIX       = ".tmpl"
	DAGGER_FILE_TOKEN = "($dagger$)"
	APP_FILE_TOKEN    = "[(application)]"
	FEATURE_TOKEN     = "[(feature)]"
)

Variables

This section is empty.

Functions

func CleanFilepath added in v0.4.0

func CleanFilepath(filepath string, fileToken string) string

func ContainFiles

func ContainFiles(pathes ...string) types.GomegaMatcher

func ExcludeTemplate added in v0.4.0

func ExcludeTemplate(filepath string, excludeDagger bool) bool

func IsForgeTemplate added in v0.4.0

func IsForgeTemplate(filepath string) bool

func RemoveTemplateExtension added in v0.4.0

func RemoveTemplateExtension(filepath string) string

func ReplaceAppName added in v0.4.0

func ReplaceAppName(filepath string, appName string) string

func ReplaceFeatureName added in v0.4.0

func ReplaceFeatureName(filepath, feature string) string

Types

type DummyFile

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

type DummyWriter

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

func NewDummyWriter

func NewDummyWriter() DummyWriter

func (*DummyWriter) Write

func (d *DummyWriter) Write(filePath string, _ func(io.Writer) error) error

IOWriter implements Writer.

type DummyWriterMatcher

type DummyWriterMatcher struct {
	Pathes []string
}

func (*DummyWriterMatcher) FailureMessage

func (matcher *DummyWriterMatcher) FailureMessage(actual interface{}) (message string)

func (*DummyWriterMatcher) Match

func (matcher *DummyWriterMatcher) Match(actual interface{}) (success bool, err error)

func (*DummyWriterMatcher) NegatedFailureMessage

func (matcher *DummyWriterMatcher) NegatedFailureMessage(actual interface{}) (message string)

type FileWriter

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

func NewFileWriter

func NewFileWriter(outputFolder string) FileWriter

func (FileWriter) Write

func (fw FileWriter) Write(filePath string, writerFn func(io.Writer) error) error

type Writer

type Writer interface {
	Write(filePath string, writerFn func(io.Writer) error) error
}

Jump to

Keyboard shortcuts

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