1package main
2
3import (
4	"os"
5)
6
7// Configured at compile time
8var bashPath string
9
10func main() {
11	// We drop $PWD from caller since it can include symlinks, which will
12	// break relative path access when finding .envrc in a parent.
13	_ = os.Unsetenv("PWD")
14
15	var env = GetEnv()
16	var args = os.Args
17
18	setupLogging(env)
19
20	err := CommandsDispatch(env, args)
21	if err != nil {
22		logError("error %v", err)
23		os.Exit(1)
24	}
25}
26