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.
- Host: GitHub
- URL: https://github.com/nightmachinery/readline_prompt
- Owner: NightMachinery
- Created: 2024-06-28T14:38:07.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T14:39:49.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T17:47:59.692Z (over 1 year ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.org
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