cmdutil.Factory.Executable() accounts for things like package managers and symlinks to the actual executable. An alternative to passing the *cmdutil.Factory down the stack would be stashing the executable string in the codespace.App, which works (and the diff is smaller), but it produced some odd non-local test failures. This way seems less mysterious and more like other uses of Factory in the codebase. |
||
|---|---|---|
| .. | ||
| code.go | ||
| code_test.go | ||
| common.go | ||
| create.go | ||
| create_test.go | ||
| delete.go | ||
| delete_test.go | ||
| list.go | ||
| logs.go | ||
| mock_api.go | ||
| mock_prompter.go | ||
| ports.go | ||
| root.go | ||
| ssh.go | ||
| stop.go | ||