Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForcerAdapter ¶
type ForcerAdapter struct {
// contains filtered or unexported fields
}
ForcerAdapter adapts force operations to the application.ForcerPort interface
func NewForcerAdapter ¶
func NewForcerAdapter() *ForcerAdapter
NewForcerAdapter creates a new forcer adapter
func (*ForcerAdapter) CheckFileExists ¶
func (fa *ForcerAdapter) CheckFileExists(filepath string) (bool, error)
CheckFileExists checks if a file exists and handles force mode
func (*ForcerAdapter) SetForceMode ¶
func (fa *ForcerAdapter) SetForceMode(overwrite bool)
SetForceMode sets the force mode with overwrite setting
func (*ForcerAdapter) ShouldForce ¶
func (fa *ForcerAdapter) ShouldForce() bool
ShouldForce returns whether force mode is enabled
func (*ForcerAdapter) ShouldOverwrite ¶
func (fa *ForcerAdapter) ShouldOverwrite() bool
ShouldOverwrite returns whether files should be overwritten