luckyframework / lucky_cli

A Crystal command-line tool for generating new Lucky Web Applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tasks file generator generates a broken tasks file

jwoertink opened this issue · comments

I've seen this file a lot of times, but I've never really taken the time to read the code...

https://github.com/luckyframework/lucky_cli/blob/master/src/generators/tasks_file.cr

It generates a tasks.cr file for you which will actually overwrite your current tasks.cr file if you have one... The one it currently generates doesn't work anyway because it requires "lucky_cli" instead of "lucky_task". It seems we missed that line in #622

require "lucky_cli"

Also, when you run lucky -h which gives you a list of tasks you can run lucky gen.tasks_file is not one of them 😅 I'm gonna guess no one uses this... Do we even need it? 🤔