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'm building a standalone app with multiple "RoboFiles" ie command classes. I've hit a point where some of these classes would like to be able to call a command from another one. If I'm writing a command inside CommandClassA how might I execute command CommandClassB::myCommand() (other than just running it as a CLI call in an exec task)? Or do I really just need to write custom tasks here?
The text was updated successfully, but these errors were encountered:
Making custom tasks is the best way to share common code between multiple RoboFiles. The progress bar will work better if a command is a series of custom tasks compared to a series of taskExecs. This aspect does not necessarily improve if calling other commands directly rather than via taksExec.
Others have requested this feature, though, and there are use cases where this makes sense. I made this PR: #675. Should have merged it already, but I had intended to do some refactoring.
I'm building a standalone app with multiple "RoboFiles" ie command classes. I've hit a point where some of these classes would like to be able to call a command from another one. If I'm writing a command inside
CommandClassA
how might I execute commandCommandClassB::myCommand()
(other than just running it as a CLI call in an exec task)? Or do I really just need to write custom tasks here?The text was updated successfully, but these errors were encountered: