# README
dotfiles
import "github.com/jan-xyz/dotfiles/internal"
Package dotfiles contains implementations for various tools and preferences which can be configured with the tool. It includes installing and updating packages as well as configurations.
Index
type Commander
Commander is the interface to mock the exec.Command.
type Commander func(string, ...string) ([]byte, error)
type MockCommander
MockCommander allows to test packages individually without creating anything real.
type MockCommander struct {
mock.Mock
}
func (*MockCommander) OnOutput
func (c *MockCommander) OnOutput(command string, arguments []string) *OutputCall
OnOutput is a helper function to specify epxectations on the mock.
func (*MockCommander) Output
func (c *MockCommander) Output(command string, arguments ...string) ([]byte, error)
Output is the mock that gets called when running some command
type OutputCall
OutputCall is the type to specify the mocked output
type OutputCall struct {
*mock.Call
}
func (*OutputCall) Return
func (o *OutputCall) Return(output []byte, err error)
Return is a helper function to specify the mocked return values
Generated by gomarkdoc