{"id":13413155,"url":"https://github.com/ncruces/zenity","last_synced_at":"2025-04-13T09:00:11.874Z","repository":{"id":37624754,"uuid":"227095090","full_name":"ncruces/zenity","owner":"ncruces","description":"Zenity dialogs for Golang, Windows, macOS","archived":false,"fork":false,"pushed_at":"2024-10-04T20:23:14.000Z","size":596,"stargazers_count":724,"open_issues_count":5,"forks_count":37,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-30T06:21:35.546Z","etag":null,"topics":["macos","no-cgo","windows","zenity"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/ncruces/zenity","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncruces.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.paypal.com/donate?hosted_button_id=8HRSPHYP3JQ4S"}},"created_at":"2019-12-10T10:51:20.000Z","updated_at":"2024-10-29T02:33:45.000Z","dependencies_parsed_at":"2023-07-15T12:14:46.642Z","dependency_job_id":"6b58bc5c-7ed3-4901-9605-cb238821b8de","html_url":"https://github.com/ncruces/zenity","commit_stats":null,"previous_names":["ncruces/go-ui"],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncruces%2Fzenity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncruces%2Fzenity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncruces%2Fzenity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncruces%2Fzenity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncruces","download_url":"https://codeload.github.com/ncruces/zenity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688559,"owners_count":21145765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","no-cgo","windows","zenity"],"created_at":"2024-07-30T20:01:34.233Z","updated_at":"2025-04-13T09:00:11.767Z","avatar_url":"https://github.com/ncruces.png","language":"Go","readme":"# Zenity dialogs for Golang, Windows and macOS\n\n[![Go Reference](https://pkg.go.dev/badge/image)](https://pkg.go.dev/github.com/ncruces/zenity)\n[![Go Report](https://goreportcard.com/badge/github.com/ncruces/zenity)](https://goreportcard.com/report/github.com/ncruces/zenity)\n[![Go Coverage](https://github.com/ncruces/zenity/wiki/coverage.svg)](https://raw.githack.com/wiki/ncruces/zenity/coverage.html)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n\nThis repo includes:\n- a cross-platform [Go](https://go.dev/) package providing\n[Zenity](https://help.gnome.org/users/zenity/stable/)-like dialogs\n(simple dialogs that interact graphically with the user)\n- a *“port”* of the `zenity` command to both Windows and macOS based on that library.\n\nImplemented dialogs:\n* [message](https://github.com/ncruces/zenity/wiki/Message-dialog) (error, info, question, warning)\n* [text entry](https://github.com/ncruces/zenity/wiki/Text-entry-dialog)\n* [list](https://github.com/ncruces/zenity/wiki/List-dialog) (simple)\n* [password](https://github.com/ncruces/zenity/wiki/Password-dialog)\n* [file selection](https://github.com/ncruces/zenity/wiki/File-selection-dialog)\n* [color selection](https://github.com/ncruces/zenity/wiki/Color-selection-dialog)\n* [calendar](https://github.com/ncruces/zenity/wiki/Calendar-dialog)\n* [progress](https://github.com/ncruces/zenity/wiki/Progress-dialog)\n* [notification](https://github.com/ncruces/zenity/wiki/Notification)\n\nBehavior on Windows, macOS and other Unixes might differ slightly.\nSome of that is intended (reflecting platform differences),\nother bits are unfortunate limitations.\n\n## Installing\n\nThe Go package:\n\n    go get github.com/ncruces/zenity@latest\n\nThe `zenity` command on macOS/WSL using [Homebrew](https://brew.sh/) 🍺:\n\n    brew install ncruces/tap/zenity\n\nThe `zenity` command on Windows using [Scoop](https://scoop.sh/) 🍨:\n\n    scoop install https://ncruces.github.io/scoop/zenity.json\n\nThe `zenity` command on macOS/Windows, if you have [Go](https://go.dev/):\n\n    go install github.com/ncruces/zenity/cmd/zenity@latest\n\nOr download the [latest release](https://github.com/ncruces/zenity/releases/latest).\n\n## Using\n\nFor the Go package, consult the [documentation](https://pkg.go.dev/github.com/ncruces/zenity#section-documentation)\nand [examples](https://pkg.go.dev/github.com/ncruces/zenity#pkg-examples).\n\nThe `zenity` command does its best to be compatible with the GNOME version.\\\nConsult the [documentation](https://help.gnome.org/users/zenity/stable/)\nand [man page](https://linux.die.net/man/1/zenity) of that command.\n\n## Why?\n\n#### Benefits of the Go package:\n\n* no `cgo` (see [benefits](https://dave.cheney.net/2016/01/18/cgo-is-not-go), mostly cross-compilation)\n* no main loop (or any other threading or initialization requirements)\n* cancelation through [`context`](https://golang.org/pkg/context/)\n* on Windows:\n  * no additional dependencies\n    * Explorer shell not required\n    * works in Server Core\n  * Unicode support\n  * High DPI (no manifest required)\n  * Visual Styles (no manifest required)\n  * WSL/Cygwin/MSYS2 [support](https://github.com/ncruces/zenity/wiki/Zenity-for-WSL,-Cygwin,-MSYS2)\n* on macOS:\n  * only dependency is `osascript`\n* on other Unixes:\n  * wraps either one of `zenity`, `matedialog`, [`qarma`](https://github.com/luebking/qarma)\n\n## Zenity wrappers\n\nZenity wrappers for languages other than Go can benefit from our `zenity` command. On Unix (Linux, FreeBSD, etc) they can use the original tool, and on Windows/macOS they may use the command from this repo for portability.\n\nExamples:\n- NodeJS [`dialog-gui`](https://github.com/SnurfDev/dialog-gui) by [@SnurfDev](https://github.com/SnurfDev/dialog-gui)\n- Crystal [`zenity.cr`](https://github.com/kojix2/zenity.cr) by [@kojix2](https://github.com/kojix2/)\n\n## Credits\n\nI'd like to thank all [contributors](https://github.com/ncruces/zenity/graphs/contributors),\nbut [@gen2brain](https://github.com/gen2brain) in particular\nfor [`dlgs`](https://github.com/gen2brain/dlgs),\nwhich was instrumental to the Windows port of `zenity`.\n","funding_links":["https://www.paypal.com/donate?hosted_button_id=8HRSPHYP3JQ4S"],"categories":["GUI","Go","语言资源库","Relational Databases"],"sub_categories":["检索及分析资料库","go","Search and Analytic Databases","Advanced Console UIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncruces%2Fzenity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncruces%2Fzenity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncruces%2Fzenity/lists"}