An open API service indexing awesome lists of open source software.

https://github.com/nightmachinery/readline_prompt

A Rust utility for reading user inputs in shell scripts.
https://github.com/nightmachinery/readline_prompt

Last synced: 8 months ago
JSON representation

A Rust utility for reading user inputs in shell scripts.

Awesome Lists containing this project

README

          

#+TITLE: readline_prompt

* Install
#+begin_src zsh :eval never
cargo install --force --git https://github.com/NightMachinery/readline_prompt.git
#+end_src

If installing locally:
#+begin_src zsh :eval never
cargo install --path .
#+end_src

* Usage
#+begin_src bsh.dash :results verbatim :exports both :wrap results
readline_prompt -h
#+end_src

#+RESULTS:
#+begin_results
Readline Prompt
Displays an interactive prompt on stderr and reads user input

USAGE:
readline_prompt [prompt default_value]

ARGS:
Sets the prompt text (default: '> ')
Sets a default value for the input

OPTIONS:
-h, --help Print help information

The prompt is written to stderr, and the user's input is output to stdout.
#+end_results