input.suggest

Prompts the user for input using Enquirer with the provided option configuration.

Parameters:
NameTypeDescription
optionObject

Configuration object containing key, placeholder, and question.

Properties
NameTypeDescription
keystring

The key for the response.

questionstring

The message to display to the user.

placeholderstring

The answer placeholder to display to the user.

Returns:

The user's input response.

Type: 
Promise.<Object>
Example
import { input } from "@jlongyam/cli";

let result = await input.suggest({
  key: 'language',
  question: 'primary language',
  placeholder: 'english'
});

console.log(result.language)