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. |
||
|---|---|---|
| .. | ||
| help.go | ||
| help_reference.go | ||
| help_test.go | ||
| help_topic.go | ||
| help_topic_test.go | ||
| root.go | ||