You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
Plugins currently have to use Env#config to get at the options they might need. This is error prone, and will lead almost certainly to fragmentation. We instead should add a new class method for plugins to declare options upfront (serves as documentation) and then provide auto-defined methods to get at those at the instance level:
classTestPlugin < Pluginoption:foooption:bar,default: 'lux'defwhateverputsoptions[:bar]# => 'lux' (assuming it was not set in the .shanty.yml or on the CLI)endend
The text was updated successfully, but these errors were encountered:
To set plugin options from the CLI would need a little bit of syntax to prevent them being ambiguous with task options and whatnot. Perhaps something like this would work:
Plugins currently have to use
Env#config
to get at the options they might need. This is error prone, and will lead almost certainly to fragmentation. We instead should add a new class method for plugins to declare options upfront (serves as documentation) and then provide auto-defined methods to get at those at the instance level:The text was updated successfully, but these errors were encountered: