Documentation
¶
Overview ¶
Package gitbash finds the bash that ships with Git for Windows.
Lectern's command lines are POSIX shell, and on Windows the one shell every agent machine already has is Git for Windows' bash: Git is a requirement, and Claude Code needs Git Bash on Windows too. A bare `bash` on PATH is avoided on purpose — C:\Windows\System32\bash.exe is the WSL launcher, which would run the command in a Linux distribution, not on this machine.
Index ¶
Constants ¶
const Env = "LECTERN_BASH"
Env names a bash.exe to use instead of searching.
Variables ¶
This section is empty.
Functions ¶
func NativePath ¶
NativePath turns a path a Git Bash command line used into the Windows path of the same file, so a file Lectern writes from Go and one a command line then reads are the same file: /c/Users/me is C:\Users\me, /tmp is the user's temp directory (Git for Windows mounts it there), and any other absolute path lies under Git's own installation, which is Git Bash's /.
Types ¶
This section is empty.