Skip to content

Conversation

@tjprescott
Copy link
Member

@tjprescott tjprescott commented Mar 29, 2019

Closes #131. Add the feature from Azure CLI where the CLI will try to suggest the closest alternative when the user mistypes a command.

@tjprescott tjprescott requested a review from limingu May 22, 2019 21:45
Copy link
Member

@limingu limingu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that moving this feature to knack to let others use. Do we want to centralize this feature and let the CLI core to use this from knack? So we can remove the duplicate codes in CLI core.

@tjprescott
Copy link
Member Author

@limingu yes, my PR to update the CLI to use this version of knack will remove the duplicate code.

@tjprescott tjprescott merged commit 6c07fe7 into microsoft:master May 22, 2019
@tjprescott tjprescott deleted the DidYouMean branch May 22, 2019 22:10
@tjprescott
Copy link
Member Author

@limingu it turns out that the version in the CLI needs to remain because it is wired for telemetry and has additional logic based on command_source, which is not in knack. But now it means that knack-based CLIs will have the command suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lift command suggestion feature from CLI 2.0.

2 participants