oclif / core

Node.js Open CLI Framework. Built by Salesforce.
https://oclif.io
MIT License
208 stars 71 forks source link

fix: use topic separator for deprecated alias warnings in `help` #1209

Closed myarmolinsky closed 1 month ago

myarmolinsky commented 1 month ago

Makes the warning for deprecated aliases here: https://github.com/oclif/core/blob/cc8366a70310682a389f3ffdebd202b1860e09d8/src/help/index.ts#L202-L206 use the topic separator by passing actualCmd.id into toConfiguredIds and using that result for the to in the Deprecation type parameter of formatCommandDeprecationWarning as done here: https://github.com/oclif/core/blob/66604a36aea80be30457cf19bdfb8891d24cc4c9/src/command.ts#L311-L315

mdonnalley commented 1 month ago

Thanks @myarmolinsky for the contribution 🏆