<
FromGitter>
<nsuchy> so I guess that means don't upgrade right
<
FromGitter>
<nsuchy> If anyone has ideas
_whitelogger has joined #amber
<
FromGitter>
<Blacksmoke16> is the current issue
<
FromGitter>
<Blacksmoke16> apparently the yaml serializable are bleeding into the possible types i guess
Micasaalcunabz has joined #amber
Micasaalcunabz has quit [Remote host closed the connection]
<
pracabor>
@nsuchy actually, a member of the crystal team submitted a pull request which updates amber for the latest Crystal
<
FromGitter>
<nsuchy> oh nice :)
<
FromGitter>
<nsuchy> pracabor: @Blacksmoke16 says the json serializer is broken in Granite by the update.
<
FromGitter>
<nsuchy> Did that get fixed too
<
FromGitter>
<charleystran> does anyone have any advice or an example of use Sam to access amber models?
<
FromGitter>
<charleystran> I am trying to make a task that exports data to CSV
<
pracabor>
@charleystran Sam?
<
pracabor>
hey a program to write programs
<
pracabor>
you can access your models by requiring them, and it doesn't take
_much_ more
<
pracabor>
you might want to make sure you have a logger configured, and then you can just require your config/ directory
<
pracabor>
the mosquito portion of this you can ignore, but this is accomplishing the same thing:
<
FromGitter>
<charleystran> Its like rake for ruby
<
FromGitter>
<Blacksmoke16> could just use Make
<
FromGitter>
<Blacksmoke16> depending on what you are trying to do, an option parser could work
<
FromGitter>
<Blacksmoke16> where would be like `./cli --doSomething` where that flag executes a method that does what you want
<
FromGitter>
<Blacksmoke16> but depends on what the actual use case is for this
<
FromGitter>
<Blacksmoke16> does amber support custom cli commands?
<
FromGitter>
<charleystran> I am just trying to export a bunch data to CSV, so nothing too complicated
<
pracabor>
I mean, honestly, I'd just write a binary in plain crystal
<
pracabor>
in your shards.yml you can specify multiple targets, which are discrete programs compiled when you do a `shards build`
<
pracabor>
then you can do `shards build csv_utility` to get the one binary or `shards build` to get all of them
<
pracabor>
it emits to ... repo/bin/ I think
<
pracabor>
then you can do `bin/csv_import` from your CLI
<
pracabor>
if you need args, optparse isn't awful