Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
https://docs.go-blueprint.dev/
MIT License
5.9k stars 333 forks source link

[Feature Request] --advanced flag for additional step options #147

Closed Ujstor closed 11 months ago

Ujstor commented 1 year ago

Running 'go-blueprint create --advanced' would provide more options, but simply running 'go-blueprint create' would maintain the current steps: frameworks and database drivers. In this step, it would be nice if users had the option for multiple choices.

In the staging-2 branch, PR #108, which includes GitHub Action Templates for generated projects, has been merged. You can test this feature on this branch by implementing it with this PR.

There is also interest in HTMX/Templ support in issue #125, and for future-added features, multi-choice implementation is a great option to consider.

Disclaimer

Ujstor commented 1 year ago

@briancbarrow This is yours if you want it; you already worked on this in PR #139

briancbarrow commented 1 year ago

@Ujstor sounds good! I am hoping to have this ready soon. If the flag is not provided do we want to prompt the user if they want to add advanced features? Or have it go through the options only if the provide the flag?

Ujstor commented 1 year ago

You got it right, only if the flag is provided, a step like this one in the example is available. I believe this fourth prompt can be utilized for other features, as a multi-choice option, although I'm not sure how to implement it.

It would be great to implement a non-interactive command. If others are interested, they can contribute to the process. This is a substantial amount of work for one person. Please let me know how I can help

wstep
briancbarrow commented 1 year ago

@Ujstor I have opened a draft PR #149 if you want to take a look. I will work on adding the routes/imports to the other routes and dbRoutes files in the coming days. If you want to help with that, let me know which ones you take.

Ujstor commented 1 year ago

Can you change the merging branch to stage-2? I'm not sure what is wrong with the stage. It won't add 5000 lines of code. I had the same problem with my PR. I think I will need to create a new staging from the current main. In stage-2, a PR with GitHub Action templates is implemented.

Ujstor commented 11 months ago

GG