Skip to content

Minimalist cross-platform dialogboxes tool written in Go

License

Notifications You must be signed in to change notification settings

pedroalbanese/dialogbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dialogbox

ISC License GoDoc GitHub downloads Go Report Card GitHub go.mod Go version GitHub release (latest by date)

Cross-platform Dialog Boxes Tool written in Go

Custom Input/Dialog boxes to get user input/choice for bash/batch scripting automation and interaction. A graphical control element in the form of a small window that communicates information to the user and prompts them for a response.

Usage of dialogbox:

 -date
       Date selection dialog box
 -error
       Error dialog box
 -file
       File selection dialog box
 -folder
       Folder selection dialog box
 -info
       Info dialog box
 -input
       Text input box
 -pass
       Password input box
 -quest
       Question dialog box (Check the Exit code)
 -sub string
       Box subtitle (default "Subtitle")
 -title string
       Box title (default "Title")

Examples:

Password insertion:

password=$(./dialogbox -pass -title "Password" -sub "Insert Password:")

Link insertion:

link=$(./dialogbox -input -title "Link" -sub "Insert the link:")

Question:

./dialogbox -quest -title "Verification" -sub "Are you sure?"
echo $?

Link insertion (Windows):

FOR /F %%F in ('dialogbox -input -title "Link" -sub "Insert the link:"') do (set link=%%F)

Question (Windows):

dialogbox -quest -title "Verification" -sub "Are you sure?"
echo %ERRORLEVEL%

Linux:

$ apt-get install zenity

License

This project is licensed under the ISC License.

Copyright (c) 2020-2022 Pedro F. Albanese - ALBANESE Research Lab.

About

Minimalist cross-platform dialogboxes tool written in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages