A nushell plugin for user interaction
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julius Riegel 850310803e
Merge pull request #1 from fdncred/update_to_0861
update plugin to new nushell syntax for 0.86.1
3 months ago
.github/workflows Add license file and init cargo dist 1 year ago
src update plugin to new nushell syntax for 0.86.1 6 months ago
.gitignore Add confirm command 1 year ago
Cargo.lock update plugin to new nushell syntax for 0.86.1 6 months ago
Cargo.toml update plugin to new nushell syntax for 0.86.1 6 months ago
LICENSE.md Add license file 1 year ago
README.md Swap asciinema recording in README for better one 1 year ago

README.md

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+