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

Plugin delegate scripts

Open mbland opened this issue 8 years ago • 0 comments

There could be a generic mechanism for an application to delegate to a specific plugin, such that it adopts the help text of a plugin script or module automatically.

Basically, a script can be written right now as:

#! /bin/bash
#
# Delegates to plugins/foo/bin/bar

. "$_GO_SCRIPTS_DIR/plugins/foo/bin/bar" "$@"

And we can eventually parse # Delegates to plugins/foo/bin/bar to include that help text instead. Eventually we could even remove the need to include any implementation, possibly making it optional.

mbland avatar Jan 22 '17 17:01 mbland