Open zw963 opened 1 year ago
I don't think so because if you're not using Lucky, then you don't want that to become a default dependency.
For Lucky apps, we just include all of the tasks:
Or you can include the individual ones you want like that.
I don't think so because if you're not using Lucky, then you don't want that to become a default dependency.
Don't understand what you means, there is no external dependency, those files are included with avram, right? i consider we should move above require "avram/lucky/tasks" into avram, what do you think?
BTW: i am current still not use lucky, but i always use lucky gen.model SomeModel
to generate my model files when use avram.
@jwoertink , any idea?
I'll have to think about this when I get back from vacation next week.
Maybe @matthewmcgarvey has some thoughts?
I'm fine with moving gen.model
and any other of the tasks that don't require lucky into the normal avram tasks directory https://github.com/luckyframework/avram/tree/main/src/avram/tasks
I don't know if you're familiar with the history but we recently moved all of the src/lucky/ext/
code from the lucky codebase. It was more of a copy/paste than anything so there could be more code in there that could be moved out since it doesn't directly depend on Lucky.
I don't know if you're familiar with the history but we recently moved all of the
src/lucky/ext/
code from the lucky codebase.
Probably not so familiar with the history, but i do know those move operation.
since it doesn't directly depend on Lucky.
yes, i consider gen.model
is one part of avram, anyone use avram don't want create those template files himself.
I consider following gen.model task is a key component of avram, right?
▸ gen.model Generate a model, query, and operations (save and delete)
I add lucky binary to my $PATH for my current laptop login user, yes, it serve as a common command for all my avram project.
When i running
lucky --help
on my project which use 1.0.0-rc1 avram, there is no gen.model task.For now, i have to
require "avram/src/lucky/tasks/gen/model"
manually in tasks.cr to make this task availableI consider this is not necessory, right?
I test on avram 1.0.0-rc1 with lucky-cli 1.0.0-rc1 binary but without add lucky as project dependency.