-
|
Following is a Lucky Task. class Db::Seed::HourlyAvailability < LuckyTask::Task
summary "Add hourly availability initialize data"
def call
p ARGV
end
endHow can I run it from Crystal directly, e.g. Db::Seed::HourlyAvailability.run "foo"Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jwoertink
Jul 3, 2025
Replies: 1 comment
-
|
You can just run Db::Seed::HourlyAvailability.new.callIf you do, then you can use Db::Seed::HourlyAvailability.new.print_help_or_call(ARGV) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zw963
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just run
calllike normal if you don't need any external args passed in.If you do, then you can use
print_help_or_call