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 Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner represents a craft generation parameters.
Associated to it are functions for generate command. An Runner should always be created with NewExecutor or unexpected behaviors will occur.
func NewRunner ¶
func NewRunner(ctx context.Context, config models.CraftConfig, opts models.GenerateOptions) (*Runner, error)
NewRunner creates a new executor from given craft configuration and destdir.
Click to show internal directories.
Click to hide internal directories.