[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Hold back Functions refactor until after I/O" #3384

Merged
merged 4 commits into from
May 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug with promptOnce in open command
  • Loading branch information
inlined committed May 19, 2021
commit 0f1ce496952300f30dc52ac3cd6b3933b4277451
13 changes: 5 additions & 8 deletions src/commands/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,11 @@ export default new Command("open [link]")
}

if (!link) {
const name = await promptOnce(
{},
{
type: "list",
message: "What link would you like to open?",
choices: CHOICES,
}
);
const name = await promptOnce({
type: "list",
message: "What link would you like to open?",
choices: CHOICES,
});
link = _.find(LINKS, { name });
}
if (!link) {
Expand Down