faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <elorest> Could I get an approval on this: https://github.com/amberframework/amber/pull/1054
feepbot has quit [Ping timeout: 272 seconds]
feepbot has joined #amber
<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> <charleystran> correct
<FromGitter> <Blacksmoke16> https://github.com/Blacksmoke16/athena/blob/master/docs/cli.md might be of interest
<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
FromGitter has joined #amber