adhocteam / pushup

Pushup is for making modern, page-oriented web apps in Go
https://pushup.adhoc.dev
MIT License
840 stars 30 forks source link

Project name could come from path given to pushup new #51

Open scitech opened 1 year ago

scitech commented 1 year ago

I did a pushup new mycoolapp and got a mycoolapp/ folder like I wanted, but my go.mod says module example/myproject and my build artifact is myproject.exe.

I see that I can do pushup new -module mycoolapp mycoolapp, but might be a nice default to take the last item of a split on platform-specific path separator as the module name.

paulsmith commented 1 year ago

This should be fairly straightforward, we need to plumb the name through the build process.