gdulus / bb-dialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bb-dialog

A simple wrapper library for working with dialog from Babashka.

This allows for a smoother way of adding simple TUI dialogs to your Babashka scripts on supported operating systems.

Requirements

You will need some version of either dialog, whiptail, or Xdialog installed. dialog or whiptail may already be installed on most Linux systems, however on OS X you will need to install dialog from brew. There is also a Windows port of dialog here.

Usage

For the time being, you should be able to employ bb-dialog as a git dependency in your bb.edn, and releases are tagged for ease of use:

{:deps {com.github.pixelated-noise/bb-dialog {:git/tag "v0.2"
                                              :git/sha "66cd35803ce17c3c224348c408efe38a2acde949"}}}

API docs

See quickdocs.

Also see the announcement blog post.

Options supported (current and planned)

  • Checklist (--checklist)
  • Confirmation (--yesno)
  • Basic text input (--inputbox)
  • Menu (--menu)
  • Message box (--msgbox)
  • Pause/timed dialog (--pause)
  • Radio list (--radiolist)
  • Calendar (--calendar)
  • Directory select (--dselect)
  • File select (--fselect)
  • Time picker (--timebox)

Legal

Copyright (c) 2023 Pixelated Noise Ltd

Distributed under the Eclipse Public License version 2.0 or later.

About

License:Eclipse Public License 2.0


Languages

Language:Clojure 100.0%