#nushell-plugin #user #interaction #prompt #dialoguer #ask

bin+lib nu_plugin_dialog

A nushell plugin for user interaction

2 unstable releases

0.2.0 Apr 10, 2023
0.1.0 Apr 8, 2023

#5 in #dialoguer

Custom license and maybe CC-PDDC

27KB
392 lines

nu-plugin-dialog

asciicast

This plugin adds more options to prompt for user input to nushell. It mainly uses the dialoguer crate for prompts.

Example Usage

# select a file
let selected_file = ( ls / | get name | ask select $in --fuzzy --prompt "Select a file" )

# ask for confirmation
let quit = ( ask confirm "Are you sure that you want to quit?" --default false )

if $quit {
  exit
}

For more information run ask --help or pass -- help to the subcommands.

License

CNPLv7+

Dependencies

~13–26MB
~363K SLoC