Console commands #198
Console commands #198
Comments
@radutopala I like the idea. Could you provide further details on commands that would be a candidate to be run from I could think of one action is database migrate from app library. |
@jeevatkm I'd see this as a generic gate for any kind of commands that a developer needs to create in his app, similar to what Symfony has done with the Console component Or Buffalo with Grifts. So, basically, we should be allowed:
Examples can be numerous: db migration command, one-off commands, import commands, app specific setup commands etc |
@radutopala Now I fully understood. Thanks. So |
@jeevatkm I've renamed the issue to be in line with the spec |
…and build flow and moved generated file into directory generated
… and build flow and moved generated file into directory generated
This even could behave like a background Tasks/Jobs run by cron |
@radutopala Here is the upcoming console commands documentation https://github.com/go-aah/docs/blob/v0.12-edge/console-commands.md Could you have a look and let me know if you have questions? |
Done |
@jeevatkm top notch, thx |
We should be able to run commands directly from the main binary if in prod env or through
aah
binary when in dev mode.Please see Buffalo grifts at https://github.com/markbates/grift, https://github.com/gobuffalo/buffalo/tree/master/grifts.
console
moduleThe text was updated successfully, but these errors were encountered: