I created a Go CLI app with the cobra framework via the cobra add
command. After building it with go build
it works totally fine if I'm in the repository in the windows cmd. If I click on the .exe
I get the following message on a terminal:
This is a command line tool.
You need to open cmd.exe and run it from there.
This is not suitable for my case. I'd like to have a console applocation like in C or C++ which opens directly and you can type in commands there. Do you have any suggestions how I could realize this while using cobra?
Thank you a lot in advance.