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
I came across the use case of having commands be able to be disabled when I wanted to add a debugging tool to spread but had no way to do so without it being exposed to users.
The reflection logic for menu generation should be altered to look for methods returning a cli.Command pointer rather than value. This allows the methods to return nil if they are disabled.
The text was updated successfully, but these errors were encountered:
I came across the use case of having commands be able to be disabled when I wanted to add a debugging tool to
spread
but had no way to do so without it being exposed to users.The reflection logic for menu generation should be altered to look for methods returning a
cli.Command
pointer rather than value. This allows the methods to returnnil
if they are disabled.The text was updated successfully, but these errors were encountered: