Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivernis authored Apr 8, 2023
1 parent 0b05714 commit 990f52b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# nu-plugin-dialog

This plugin adds more options to prompt for user input to nushell.
It mainly uses the [dialoguer](https://github.com/console-rs/dialoguer) crate for prompts.

## Example Usage

```nu
# 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+

0 comments on commit 990f52b

Please sign in to comment.