MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / CopyHelpFile

Method CopyHelpFile

pkg/integration/components/shell.go:474–476  ·  view source on GitHub ↗

Help files are located at test/files from the root the lazygit repo. E.g. You may want to create a pre-commit hook file there, then call this function to copy it into your test repo.

(source string, destination string)

Source from the content-addressed store, hash-verified

472// E.g. You may want to create a pre-commit hook file there, then call this
473// function to copy it into your test repo.
474func (self *Shell) CopyHelpFile(source string, destination string) *Shell {
475 return self.CopyFile(fmt.Sprintf("../../../../../files/%s", source), destination)
476}
477
478func (self *Shell) CopyFile(source string, destination string) *Shell {
479 absSourcePath := filepath.Join(self.dir, source)

Calls 2

CopyFileMethod · 0.95
SprintfMethod · 0.65

Tested by

no test coverage detected