-
Notifications
You must be signed in to change notification settings - Fork 595
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
[rush] Shell tab completion #2060
Conversation
…and parameters can also be populated.
@ sachinjoseph Could you add a PR description explaining how to use this feature? |
Sure. |
….com/microsoft/web-build-tools into sachinjoseph/rush-shell-tab-complete
…into sachinjoseph/rush-shell-tab-complete
…sachinjoseph/rush-shell-tab-complete
…sachinjoseph/rush-shell-tab-complete
@sachinjoseph This PR looks good to me except for two minor issues:
I'm very eager to get this merged so we can go optimize Heft next! |
Done. Reverted both of these as they aren't providing any real perf gains. |
…h/rush-shell-tab-complete # Conflicts: # common/config/rush/pnpm-lock.yaml # common/config/rush/repo-state.json
Tab completion for the Rush CLI
Inspired by Tab completion for the .NET Core CLI.
Because changes were made to
@microsoft/rush package
, the globally installed version ofRush
will need to be updated.Note: In the below scripts, replace
rush tab-complete
withnode "absolute/path/to/rushstack/rush-lib/lib/start.js" tab-complete
to use the locally builtRush
.PowerShell
To add tab completion to PowerShell for the Rush CLI, create or edit the profile stored in the variable
$PROFILE
. For more information, see How to create your profile and Profiles and execution policy.Add the following code to your profile:
Bash
To add tab completion to your bash shell for the Rush CLI, add the following code to your .bashrc file:
Lazy-import optimization
import-lazy + a few other optimizations here and there helped bring it down from ~2.2 seconds to ~0.7 seconds!