mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
List Bower commands alphabetically in help
This commit is contained in:
@@ -29,7 +29,10 @@ module.exports = function (name) {
|
||||
var validCommand = !!(name && commands[name]);
|
||||
var templateName = validCommand ? 'help-' + name : 'help';
|
||||
|
||||
if (!validCommand) context = { commands: Object.keys(commands).join(', ') };
|
||||
if (!validCommand) context = {
|
||||
commands: Object.keys(commands).sort().join(', ')
|
||||
}
|
||||
|
||||
_.extend(context, config);
|
||||
|
||||
template(templateName, context)
|
||||
|
||||
Reference in New Issue
Block a user