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

feat: show aliasOf if applicable #545

Merged
merged 3 commits into from
Feb 15, 2024
Merged

feat: show aliasOf if applicable #545

merged 3 commits into from
Feb 15, 2024

Conversation

mdonnalley
Copy link
Contributor

  • Show aliasOf if provided command is an alias of another command
  • Enable --json and return JSON output
  • unfancy tests

Fixes #515
@W-14774252@

@cristiand391
Copy link
Member

QA notes:

✅ can resolve alias -> command, both topic separator and quotes:

sf which 'force:auth:list'
sf which force:auth:list
sf which force auth list
sf which 'force:auth:list'

// all return:

 ›   Warning: @oclif/plugin-which is a linked ESM module and cannot be auto-transpiled. Existing compiled source
 ›   will be used instead.
=== force:auth:list

aliasOf: org list auth
plugin:  @salesforce/plugin-auth

✅ JSON flag works, also tested with possible quoted/non-quoted ids above

{
  "plugin": "@salesforce/plugin-auth",
  "aliasOf": "org list auth"
}
{
  "plugin": "@salesforce/plugin-auth"
}

@cristiand391 cristiand391 merged commit 4066e88 into main Feb 15, 2024
8 checks passed
@cristiand391 cristiand391 deleted the mdonnalley/alias-of branch February 15, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warn if arg is an alias of a command
2 participants