1.0.6 • Published 8 months ago

@inquirer-cli/input v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@inquirer-cli/input

CLI tool for text input using Inquirer.js.

Installation

No installation required. Use npx to run the tool directly:

npx -y @inquirer-cli/input [...options]

Note: The -y flag is used with npx to skip the installation prompt. This is necessary because the CLI's output is consumed by $() in bash, which would otherwise cause the script to freeze.

Usage

Prompt the user for text input:

name=$(npx -y @inquirer-cli/input -r "What is your name?")
echo "Hello, $name!"

Options

  • <message> (required): The message to display to the user.
  • -r, --required: Make the input required.
  • -h, --help: Show the help message and exit.

Example

#!/bin/sh
name=$(npx -y @inquirer-cli/input -r "What is your name?")
echo "Hello, $name!"

License

MIT

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago