Skip to content

Commit

Permalink
Update myhook.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Oct 17, 2024
1 parent baeade8 commit 05c999f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/hooks/command_not_found/myhook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Help, Hook, toConfiguredId, ux} from '@oclif/core';
import {confirm} from '@clack/prompts'
import {Help, Hook, toConfiguredId} from '@oclif/core';
import {confirm} from '@clack/prompts';
import chalk from 'chalk';
import {default as levenshtein} from 'fast-levenshtein';

Expand Down Expand Up @@ -46,7 +46,7 @@ const hook: Hook.CommandNotFound = async function (opts) {
let response;
try {
if (opts.id === 'help') {readableSuggestion = '--help';}
response = await confirm({message: `Did you mean ${chalk.blueBright(readableSuggestion)}? [y/n]`})
response = await confirm({message: `Did you mean ${chalk.blueBright(readableSuggestion)}? [y/n]`});
} catch (error) {
this.log('');
this.debug(error);
Expand Down

0 comments on commit 05c999f

Please sign in to comment.