ghokin

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 13 Imported by: 0

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

func (CmdErr) Error

func (e CmdErr) Error() string

Error outputs both stdout and stderr

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

type ProcessFileError struct {
	Message string
	File    string
}

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

Jump to

Keyboard shortcuts

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