<FromGitter>
<charleystran> does anyone have any articles or documentation around how to build something like a rake task with Amber. Not just a crystal script but something that can use the models and relationships.
<FromGitter>
<Blacksmoke16> just make a class with a class method and can call i anywhere?
<FromGitter>
<Blacksmoke16> like any crystal script you make can just require things from your main app to use
<FromGitter>
<Blacksmoke16> oh, you mean that can be called from command line
<FromGitter>
<Blacksmoke16> sadly not built into amber but could just require that portion
<FromGitter>
<Blacksmoke16> Other option would be to do something similar with option parser and class methods if you don't want the extra dependency
<FromGitter>
<Blacksmoke16> Like manually build out the options and map each one to a handler
FromGitter has quit [Remote host closed the connection]
<robacarp>
charleystran essentially you need to include the entire app, but not trigger the one line that starts the server
<robacarp>
unfortunately the app skeleton as generated has all the requires in the same file as the server start line, so it's a matter of a bunch of copypasta