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

Method Chdir

pkg/integration/components/shell.go:514–518  ·  view source on GitHub ↗

The final value passed to Chdir() during setup will be the directory the test is run from.

(path string)

Source from the content-addressed store, hash-verified

512// The final value passed to Chdir() during setup
513// will be the directory the test is run from.
514func (self *Shell) Chdir(path string) *Shell {
515 self.dir = filepath.Join(self.dir, path)
516
517 return self
518}
519
520func (self *Shell) SetAuthor(authorName string, authorEmail string) *Shell {
521 self.RunCommand([]string{"git", "config", "--local", "user.name", authorName})

Callers 15

RunTestsFunction · 0.80
bare_repo.goFile · 0.80
copy_menu.goFile · 0.80
setupNestedSubmodulesFunction · 0.80
NewGitCommandFunction · 0.80
DeleteMethod · 0.80
UpdateUrlMethod · 0.80
StartFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected