Add option to set up command alias
See original GitHub issueIs there an existing issue that is already proposing this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe it
Commander supports command aliases out of the box. Currently, we need to get the commander instance to add an alias to a command
Describe the solution you’d like
@SubCommand({
name: 'migration',
alias: 'mi',
description: 'generate a db migration'
})
export class MigrationGeneratorCommand implements CommandRunner {
...
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
command aliases is pretty common use case for generators
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to Create and Use Alias Command in Linux - Tecmint
What you need to do is type the word alias then use the name you wish to use to execute a command followed...
Read more >Linux alias Command: How to Use It With Examples
Create a Temporary Alias in Linux ... Note: The alias command allows you to include multiple commands as the value by dividing them...
Read more >alias command in Linux with Examples - GeeksforGeeks
alias command instructs the shell to replace one string with another string while executing the commands. When we often have to use a...
Read more >How to create an alias in Linux | Enable Sysadmin - Red Hat
How to create an alias in Linux. Learn how to create shortcuts at the terminal to your most-used commands to save you time...
Read more >Linux Alias Command: Set, Create and Remove Aliases
How to create alias in Linux · The substituted command is always used under the inverted commas ('). · There must be no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I’d rather we have
name
be a string as the main name of the command, and allow for analiases
where we doaliases.forEach(alias => command.alias(alias))
. I think it’ll fair better with the--help
command as wellAdded support in 2.5.0