Documentation ¶
Index ¶
- func Box(g *genny.Generator, box packd.Walker) error
- func DryRunner(ctx context.Context) *genny.Runner
- type SourceModification
- func (sm *SourceModification) AppendCreatedFiles(createdFiles ...string)
- func (sm *SourceModification) AppendModifiedFiles(modifiedFiles ...string)
- func (sm SourceModification) CreatedFiles() (createdFiles []string)
- func (sm *SourceModification) Merge(newSm SourceModification)
- func (sm SourceModification) ModifiedFiles() (modifiedFiles []string)
- type Walker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SourceModification ¶
type SourceModification struct {
// contains filtered or unexported fields
}
SourceModification describes modified and created files in the source code after a run
func NewSourceModification ¶
func NewSourceModification() SourceModification
func RunWithValidation ¶
func RunWithValidation( tracer *placeholder.Tracer, gens ...*genny.Generator, ) (sm SourceModification, err error)
RunWithValidation checks the generators with a dry run and then execute the wet runner to the generators
func (*SourceModification) AppendCreatedFiles ¶
func (sm *SourceModification) AppendCreatedFiles(createdFiles ...string)
AppendCreatedFiles appends a created files in the source modification that are not already documented
func (*SourceModification) AppendModifiedFiles ¶
func (sm *SourceModification) AppendModifiedFiles(modifiedFiles ...string)
AppendModifiedFiles appends modified files in the source modification that are not already documented
func (SourceModification) CreatedFiles ¶
func (sm SourceModification) CreatedFiles() (createdFiles []string)
CreatedFiles returns the created files of the source modification
func (*SourceModification) Merge ¶
func (sm *SourceModification) Merge(newSm SourceModification)
Merge merges new source modification to an existing one
func (SourceModification) ModifiedFiles ¶
func (sm SourceModification) ModifiedFiles() (modifiedFiles []string)
ModifiedFiles returns the modified files of the source modification
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
Walker implements packd.Walker for Go embed's fs.FS.
func NewEmbedWalker ¶
NewEmbedWalker returns a new Walker for fs. trimPrefix is used to trim parent paths from the paths of found files.