Add support for command aliases and one breaking change
Aliases support
One will be now able to define aliases for the commands they create by using the aliases property.
class MyCommand extends BaseCommand {
public static aliases = ['alias1', 'alias2']
}Also, the aliases can come from anywhere and not just the command. This will allow us to also read aliases from the .adonisrc.json file
Breaking change
The Kernel.getSuggestions() now returns an array of strings and not command constructors. This is allow us also query aliases for suggestions
Commits
- refactor: restructure types ac2b2fd
- style: remove unused import 0451abe
- chore: force colors when running release command 954bb87
- improvement: allow aliases to be defined anywhere cf18ed6
- feat: add support for aliases 55ed98f
- refactor: make manifest loader and generator apis async 4bee7c9
- chore: ignore package-lock file 1eaf5db
- refactor: remove the docs folder 6227fc3
- style: remove unused import e2f8641
- chore: remove npm-audit in favor of synk ca9570a
- chore: use the next tag for release 37071ca
- chore: update dependencies 1965a50
- chore(deps): bump highlight.js from 10.3.2 to 10.4.1 (#121) b6791f8
- fix: upgrade mustache from 4.0.1 to 4.1.0 (#123) 81f53d9
- chore(deps): bump ini from 1.3.5 to 1.3.7 (#122) 49a375c