go-script-bash icon indicating copy to clipboard operation
go-script-bash copied to clipboard

.config/go-script-bash directory for projects

Open mbland opened this issue 8 years ago • 1 comments

Thinking of patterning a .config/go-script-bash directory convention along the lines of the XDG_CONFIG_HOME spec. This way there could be a mechanism to import .config/go-script-bash/* to get the top-level config for the project (some possibly standard, but can pull in user-defined config like this, too).

This could also support a recursive mechanism to import and install plugins by following every .config/go-script-bash/plugins file in the _GO_PLUGINS_DIR tree. Only plugins defined in the top-level .config/go-script-bash/plugins file would then be available to the top-level command script, to support an npm-like node_modules plugin directory structure where by common plugins are shared, but without cluttering up the main command namespace.

More generally, there could be a mechanism to determine which commands to expose as part of the public vs. private interface, but that's for a future issue.

mbland avatar Jan 26 '17 00:01 mbland

To be clear: The suggestion is inspired by XDG_CONFIG_HOME; the actual directory would live in each project directory, not in each user's $HOME directory.

mbland avatar Oct 09 '17 21:10 mbland