Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitSlice ¶
SplitSlice splits an input slice into two output slices depending on the iteratee function.
If the function returns true, then the element is placed in the first output slice. If not, the element is placed in the second output slice.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor represents a craft generation parameters.
Associated to it are functions for generate command. An Executor should always be created with NewExecutor or unexpected behaviors will occur.
func NewExecutor ¶
func NewExecutor(config models.CraftConfig, opts models.GenerateOptions) (*Executor, error)
NewExecutor creates a new executor from given craft configuration and destdir.
Click to show internal directories.
Click to hide internal directories.