Shows a entry dialog.
Shows a entry dialog similar to zenity
. Currently extra buttons are not
supported on all platforms. Unix/Windows supports multiple extra buttons, MacOS
does not.
0
: User pressedOk
.1
: User pressedCancel
or closed the dialog.2
: The user pressed an extra button. The output contains the index of that button.
githooks-dialog entry
--timeout uint Timeout for the dialog
--title string Dialog title.
--width uint Dialog width.
--height uint Dialog height.
--window-icon DialogIcon Window icon.
One of [`info`, `warning`, `error`, `question`] (only Windows/Unix)
--text string General text of the dialog.
--no-wrap Don't wrap the text.
--ellipsize Ellipsize the text if it doesn't fit.
--ok-label string Ok button label.
--cancel-label string Cancel button label.
--default-cancel Set `Cancel` as the default button.
--extra-button stringArray Extra buttons labels.
On macOS/Windows only one extra button is allowed.
--icon DialogIcon Message icon (only macOS).
One of [`info`, `warning`, `error`, `question`]
--default-entry string The default text in the entry field.
--hide-entry Hide the text in the entry field.
-h, --help help for entry
--json Report the result as a JSON object on stdout.
Exit code:
- `0` for success, and
- '> 0' if creating the dialog failed.
- githooks-dialog - Githooks dialog application similar to
zenity
.