Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2 KB

githooks-dialog_entry.md

File metadata and controls

60 lines (47 loc) · 2 KB

githooks-dialog entry

Shows a entry dialog.

Synopsis

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.

Exit Codes:

  • 0 : User pressed Ok.
  • 1 : User pressed Cancel or closed the dialog.
  • 2 : The user pressed an extra button. The output contains the index of that button.
githooks-dialog entry

Options

      --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

Options inherited from parent commands

      --json   Report the result as a JSON object on stdout.
               Exit code:
               	- `0` for success, and
               	- '> 0' if creating the dialog failed.

SEE ALSO

Auto generated by spf13/cobra