Documentation ¶
Index ¶
- func CreateBareGitRepository(repoName string) (string, error)
- func ExecuteCommand(root *cobra.Command, args string) (c *cobra.Command, output string, err error)
- func GetFileContent(repoPath string, fileName string) (string, error)
- func MockShellEmpty() shell.Shell
- func MockShellFunc(...) shell.Shell
- func MockShellMap(handlerValues map[string]MockResult) shell.Shell
- func Path(parts ...string) string
- func PrepareBulker(t *testing.T, sh shell.Shell, repos []settings.Repo)
- func PrepareBulkerWithGroups(t *testing.T, sh shell.Shell, repos []settings.Repo, groups []settings.Group)
- func ShellCommandToString(command string, arguments []string) string
- func ToJsonString(value any) string
- type MockResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBareGitRepository ¶ added in v0.13.1
func ExecuteCommand ¶
func GetFileContent ¶ added in v0.13.1
func MockShellEmpty ¶
func MockShellFunc ¶
func MockShellFunc(handler func(repoName string, command string, arguments []string) (string, error)) shell.Shell
MockShellFunc returns a mock of a Shell interface that returns a conditional result based on command and arguments
func MockShellMap ¶
func MockShellMap(handlerValues map[string]MockResult) shell.Shell
func PrepareBulkerWithGroups ¶
func ShellCommandToString ¶
func ToJsonString ¶
Types ¶
type MockResult ¶
Click to show internal directories.
Click to hide internal directories.