纱线开始后如何创建带有选项的提示
我在一个存储库中工作,该存储库中安装了两个React应用程序。开发人员选择通过输入YARN APP-1
或YARN APP-2 运行的项目。
纱线开始
当前未使用。如果开发人员运行纱线start
,而不是“命令'start'找不到” 我想询问他们要运行哪个应用程序,请显示两个选项,然后运行正确的选择命令。
I'm working within a repo that has two React apps installed in a subfolder. A developer chooses which project to run by entering yarn app-1
or yarn app-2
.
yarn start
is currently unused. If a developer runs yarn start
, instead of "Command 'start' not found" I would like to ask them which application they'd like to run, show the two options, and then run the correct command for their selection.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一个工具,例如
询问>询问>询问
。对于设置,请检查NPM软件包或视频
我为您创建了一个命令行游戏// 5 minute Node .js CLI项目
来自Fireship的YouTube频道。You'll need a tool like
Inquirer.js
.For the setup, check the npm package or the video
I created a Command Line Game for you // 5-Minute Node.js CLI Project
from Fireship's Youtube channel.