ACNA-4221: fixing alias rt to display help commands [draft]#389
ACNA-4221: fixing alias rt to display help commands [draft]#389elan-llm merged 1 commit intoadobe:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This is great, and absolutely works, however we have been very careful to limit our use of hooks as they slow down every command the cli executes, not even just Can we create the /src/commands/rt/index.js to handle this? Note that you can work in isolation in the repo by just doing: The DEBUG flag lets you see everything that happens in the loading of the command, you can filter to be more precise too |
ACNA-4221: Addding custome help class to fix alias rt to display help… + adobe/aio-cli-plugin-runtime#389
Fix: Display subcommands for 'rt --help' command
Problem
aio rt --helponly shows flags, missing TOPICS and COMMANDS sections.aio runtime --helpworks correctly.Closes #issue-number
Root Cause
oclif's Help system doesn't recognize
rtas an alias for a topic with subcommands.Solution
Added custom help class in main aio-cli repository to intercept the help before hitting ocliff's main.js - help class
aio rt --helprequestsruntimeinstead ofrtTesting
aio rt --help→ Shows subcommandsaio runtime --help→ Still worksaio rt(no flag) → Shows subcommands