Reverse engineered prompt

Build me a small Go command line tool called gflux that works like a fast grep based pattern finder. I want it to come with built in default patterns so it works right away, but also let me override them with my own pattern files from a project level .gflux folder and from user config folders in my home directory. If the same pattern exists in multiple places, the project one should win, then the user one, then the built in default.

It should have a simple way to list the available patterns, including a grouped view that shows where each pattern was loaded from. I also want an init command that can copy the embedded defaults into my user pattern folder, with a prompt by default and a yes flag to skip the prompt.

Please make it feel polished and easy to install as a normal Go binary. If you need details on current Go CLI conventions, look them up online.

Want more depth? Deep Reverse