Skip to content

Commit 89324e3

Browse files
committed
Update docs
1 parent ce9b74b commit 89324e3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ program
5757

5858
// InteractiveOptions with choices will show a select prompt by default
5959
.addOption(
60-
new Option("-s, --size <size>", "size")
60+
new InteractiveOption("-s, --size <size>", "size")
6161
.choices(["small", "medium", "large"])
6262
// Missing mandatory options won't throw an error in interactive mode
6363
.makeOptionMandatory(),
6464
)
6565

6666
.addOption(
67-
new Option("-n, --name <string>", "your name")
67+
new InteractiveOption("-n, --name <string>", "your name")
6868
// You can use the prompt method to implement your own prompt logic
6969
.prompt(async (currentValue, option, command) => {
7070
// TODO: Implement your own prompt logic here

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interactive-commander",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Commander.js with integrated interactive prompts",
55
"keywords": [
66
"commander",

0 commit comments

Comments
 (0)