github swiftDialog/swiftDialog v1.3.0
Dialog 1.3.0

latest releases: v2.5.0b2, v2.5.0b1, v2.4.2...
2 years ago

Skipped 1.2 and went straight to 1.3 because 🥁🥁🥁🥁 Dialog is now also a proper cli utility.

Included in this release is dialog_cli.pkg that installs /usr/local/bin/dialog
The app bundle version is exactly the same but included here for anyone using that version in their scripts. It is not required to have both installed.

<<< Given that Dialog is a command line driven application, it's highly likely that the app bundle version will go away in a future release >>>

v1.3.0 changes

  • compiled as a command line utility
    • supplied pkg installs to /usr/local/bin (or install the binary from dialog_cli_1.3.0.zip to some location in your $PATH)
    • dialog can then be called directly at the CLI as $ dialog --title ... without needing to provide the full path to the binary in the app bundle

v1.2.0 changes

  • Moved the positioning so it's along the bottom of the message text, just above the buttons
  • Removed width constraint. It will take the width of the message text area
  • refined the output piped to sddout
  • refined command line options
    --selecttitle <text>
                Title for dropdown selection

    --selectvalues <text><csv>
                List of values to be displayed in the dropdown, specivied in CSV format
                e.g. "Option 1,Option 2,Option 3"

    --selectdefault <text>
                Default option to be selected (must match one of the items in the list)

                If specified, the selected option will be sent to stdout in two forms:
                  SelectedOption - Outputs the text of the option seelcted
                  SelectedIndex  - Outputs the index of the option selected, starting at 0

                  example output:
                    SelectedOption: Option 1
                    SelectedIndex: 0

                Output of select items is only shown if Dialog's exit code is 0

image

Don't miss a new swiftDialog release

NewReleases is sending notifications on new releases.