Commit 04804db
committed
core, path: Refactor plugin path handling
I realized the `while true` loop from `_@go.run_plugin_command_script`
could live comfortably in `_@go.set_search_paths` and handle the
top-level `_GO_PLUGINS_PATHS` case as well.
Also, I realized that there was no need for `@go` to invoke
`_@go.run_plugin_command_script` if the command script in question was
from the `_GO_SCRIPTS_DIR` of the current plugin and not in
`_GO_SCRIPTS_DIR/plugins`.
Plus, there was a bug whereby it'd been presumed that the plugin command
path would always reside in the top-level `_GO_SCRIPTS_DIR` of the
plugin. Now the plugin's `_GO_SCRIPTS_DIR` is correctly set to the
`/bin` parent directory of the command script. I'll add thorough tests
for this in a future commit/PR.1 parent 69312a7 commit 04804db
2 files changed
+19
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | | - | |
279 | 278 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 279 | + | |
296 | 280 | | |
297 | 281 | | |
298 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
11 | 27 | | |
12 | 28 | | |
13 | 29 | | |
| |||
21 | 37 | | |
22 | 38 | | |
23 | 39 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| |||
0 commit comments