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
It's currently common to call a method with the Parsed object:
--run=:: foo it
foo parsed/cli.Parsed:
...
If I wanted to call the foo function directly, then I would need to create a Parsed object myself. That's currently not really possible.
We should either make this possible, or discourage passing the Parsed object around.
For example, we could encourage to always extract the options in the lambda:
--run=:: foo it["option1"] it["option2"] ...
That could get messy, and would go against future API plans, where we would like to give a Cli object that has ui, config, and cache (in addition to parsed). That said, maybe parsed shouldn't be part of that object.
The text was updated successfully, but these errors were encountered:
It's currently common to call a method with the
Parsed
object:If I wanted to call the
foo
function directly, then I would need to create aParsed
object myself. That's currently not really possible.We should either make this possible, or discourage passing the
Parsed
object around.For example, we could encourage to always extract the options in the lambda:
That could get messy, and would go against future API plans, where we would like to give a
Cli
object that hasui
,config
, andcache
(in addition toparsed
). That said, maybeparsed
shouldn't be part of that object.The text was updated successfully, but these errors were encountered: