Closed gynt closed 1 year ago
Does the parsing need to know when a string is a file path? Then the GUI needs to retain the type
in contents
Or should the alg look for ucp/
as a prefix.
Or should file paths in configs be specified with ~/ucp/
Or should the GUI actually resolve final paths (in the config-full of course). Maybe this latter is best for now!
Okay I decided to implement it as follows.
The main.lua file registers aliases for paths with ucp.internal.registerPathAlias(alias, target)
. e.g., ucp/plugins/example-0.0.1/
is registered with the alias ucp/plugins/example/
. So now all io requests are forwarded to the version of the extensions that is actually loaded as specified by the ucp-config.yml file
Maybe like this:
files*
=>files-0.0.1
orfiles-0.0.2
depending on what is active of course!