(dir string)
| 33 | ) |
| 34 | |
| 35 | func New(dir string) *CLI { |
| 36 | ps := pubsub.New() |
| 37 | return &CLI{ |
| 38 | dir: dir, |
| 39 | bus: ps, |
| 40 | Env: envs.Map{ |
| 41 | "NO_COLOR": "1", |
| 42 | "HOME": os.Getenv("HOME"), |
| 43 | "PATH": os.Getenv("PATH"), |
| 44 | "GOPATH": os.Getenv("GOPATH"), |
| 45 | "TMPDIR": os.TempDir(), |
| 46 | }, |
| 47 | Stdin: nil, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | type CLI struct { |
| 52 | dir string |