Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

dancer2 gen should not be silent and/or not talk to the outside world (by default)

Open yet-another-random-username opened this issue 9 years ago • 5 comments

I'm a newbie to dancer2 and today I started creating my first app. The box I attempted to generate the template on was closed off to the outside world which meant that when I ran it, it hung as it was attempting to talk to cpan.

This left me confused and it took me using strace to figure out what was wrong.

As such it'd be nice if dancer2 gen was more verbose about what it was doing and/or just generate the template and not talk to the outside world (by default). I've been told that it's checking to see if dancer2 is up to date. That's nice but not what I'm looking for when I just want to have a template to work with.

Thank you for opening the ticket!

I agree having proper output to know what it is doing is helpful (especially if reaching the outside world). As for not doing so, there is a command line option for that. We optimize for the common user and the common user has internet and would like to know if it's an out-of-date version.

xsawyerx avatar Jan 08 '16 13:01 xsawyerx

No strong feelings about not doing it. Message, though, strong(ish) feelings. :)

I'd recommend mentioning the option in any message relating to the outside-world call. Will make it easy for ppl who just don't care and want a template to begin work.

Like I said, there is an option to control that in the command line and say don't check the outside world, I don't care. The default is to do so. That's all.

As for the message, we're already in agreement. :)

Would you like to help create a pull request for it?

xsawyerx avatar Jan 08 '16 13:01 xsawyerx

It you want to wait until next week, sure. :) :) It's unlikely that I'll get to it over the weekend. Today is done with, tomorrow is rib and movie day and Sunday is recovery from rib and movie day. :)

Since this wasn't asked until now, I believe there is no rush on it. The benefit of waiting for you for it is worthwhile. :)

We will be happy to wait for your contribution! :)

xsawyerx avatar Jan 08 '16 13:01 xsawyerx