gen2brain / dlgs

Go cross-platform library for displaying dialogs and input boxes
BSD 2-Clause "Simplified" License
383 stars 44 forks source link

Any plans on having a CLI? #17

Open NightMachinery opened 4 years ago

NightMachinery commented 4 years ago

I searched around, and did not find any prior art on a crossplatform CLI dialog tool. (There are some platform-specific tools, e.g., https://github.com/cocoadialog/cocoadialog.) Is there any interest in creating a CLI wrapper around dlgs to fill this niche? If nobody has the time for it, I can probably do it myself when I should have the time.

gen2brain commented 4 years ago

No plans, currently dlgs already use cli tools i.e. zenity/qarma/osascript for dialogs, only on Windows it uses native functions via win32 API. When I started project, there was a plan to also make a CGO alternative that will be available via tags (gtk, qt or both), in that case, CLI tool would be nice, but wrapper for wrapper not sure if makes sense.

ncruces commented 3 years ago

Check out github.com/ncruces/zenity.

Still missing most dialogs, but the intention is to provide a zenity compatible CLI on Windows and macOS for everything that is supported.