Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdErr ¶
type CmdErr struct {
// contains filtered or unexported fields
}
CmdErr is thrown when an error occurred when calling a command on an input, both stdout and stderr are stored
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
FileManager handles transformation on feature files
func NewFileManager ¶
func NewFileManager(backgroundAndScenarioIndent int, stepIndent int, tableAndDocStringIndent int, aliases map[string]string) FileManager
NewFileManager creates a brand new FileManager, it requires indentation values and aliases defined as a shell commands in comments
func (FileManager) Check ¶ added in v1.2.0
func (f FileManager) Check(path string, extensions []string) []error
Check ensures file or folder is well formatted
func (FileManager) Transform ¶
func (f FileManager) Transform(filename string) (bytes.Buffer, error)
Transform formats and applies shell commands on feature file
func (FileManager) TransformAndReplace ¶
func (f FileManager) TransformAndReplace(path string, extensions []string) []error
TransformAndReplace formats and applies shell commands on file or folder and replace the content of files
type ProcessFileError ¶ added in v1.2.0
ProcessFileError is emitted when processing a file trigger an error
func (ProcessFileError) Error ¶ added in v1.2.0
func (p ProcessFileError) Error() string
Error dumps a string error
Click to show internal directories.
Click to hide internal directories.