WithDir sets working directory. This should be a path to any directory within a standard git repository.
(dir string)
| 67 | // |
| 68 | // This should be a path to any directory within a standard git repository. |
| 69 | func WithDir(dir string) Option { |
| 70 | return func(b *GitCLI) { |
| 71 | b.dir = dir |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // WithWorkTree sets the --work-tree arg. |
| 76 | // |