Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.74 KB

githooks-dialog_file-selection.md

File metadata and controls

53 lines (40 loc) · 1.74 KB

githooks-dialog file-selection

Shows a file selection dialog.

Synopsis

Shows a file selection dialog similar to zenity.

Exit Codes:

  • 0 : User pressed Ok. The output contains the selected paths separated by --separator. All paths use forward slashes on any platform.
  • 1 : User pressed Cancel or closed the dialog.
  • 5 : The dialog was closed due to timeout.
githooks-dialog file-selection

Options

      --timeout uint               Timeout for the dialog
      --separator string           Path separator to use for output. (default "\x00")
      --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)
      --root string                Default root path of the file dialog. (default ".")
      --filename string            Default filename in the dialog.
      --file-filter []FileFilter   Sets a filename filter (`<name> | <pattern> <pattern> ...`). (default &[])
      --show-hidden                Show hidden files.
      --directory                  Activate directory-only selection.
      --multiple                   Allow multiple selection.
  -h, --help                       help for file-selection

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