Skip to content

pixelated-noise/bb-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.3"
         :git/sha "0d23383812dd6e199661c6f276738c974a53d65d"}}}

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)
  • Tree view (--treeview)
  • 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.