Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.93 KB

githooks-dialog_message.md

File metadata and controls

60 lines (46 loc) · 1.93 KB

githooks-dialog message

Shows a message dialog.

Synopsis

Shows a message dialog similar to zenity.

Currently only one extra button is supported on all platforms. Only Unix supports multiple extra buttons. Use options to have more choices.

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 message

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.
      --style MessageStyle         Message style.
      --icon DialogIcon            Message icon.
                                   One of [`info`, `warning`, `error`, `question`]
  -h, --help                       help for message

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