Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Trivernis/nu-plugin-dialog
A nushell plugin for user interaction
https://github.com/Trivernis/nu-plugin-dialog
nushell-plugin
Last synced: 14 days ago
JSON representation
A nushell plugin for user interaction
- Host: GitHub
- URL: https://github.com/Trivernis/nu-plugin-dialog
- Owner: Trivernis
- License: other
- Created: 2023-04-08T15:16:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-03T20:49:55.000Z (10 months ago)
- Last Synced: 2024-10-07T05:09:19.500Z (about 1 month ago)
- Topics: nushell-plugin
- Language: Rust
- Homepage:
- Size: 51.8 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-nu - nu_plugin_dialog
README
# nu-plugin-dialog
[![asciicast](https://asciinema.org/a/HGEbzIVAi9YZwmIvoJOzfXuLP.svg)](https://asciinema.org/a/HGEbzIVAi9YZwmIvoJOzfXuLP)
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+