1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 10:17:59 +01:00

Partially auto-generate help index. Still needs tag linkification and mappings.

This commit is contained in:
Kris Maglione
2010-12-22 20:35:15 -05:00
parent 06936c88ea
commit c6462e49b3
4 changed files with 65 additions and 271 deletions

View File

@@ -127,6 +127,8 @@ const Command = Class("Command", {
this.options = this.options.map(CommandOption.fromArray, CommandOption);
},
get helpTag() ":" + this.name,
/**
* Execute this command.
*
@@ -1449,6 +1451,7 @@ const Commands = Module("commands", {
dactyl.addUsageCommand({
name: ["listc[ommands]", "lc"],
description: "List all Ex commands along with their short descriptions",
index: "ex-cmd",
iterate: function (args) commands,
format: {
description: function (cmd) template.linkifyHelp(cmd.description + (cmd.replacementText ? ": " + cmd.action : "")),