nitc :: CommandParser :: _commands_usage
# List of commands usage and documentation
var commands_usage: Map[String, String] do
var usage = new ArrayMap[String, String]
usage["search: <string>"] = "list entities matching `string`"
usage["link: <name>"] = "display the link to `name`"
usage["doc: <name>"] = "display the documentation for `name`"
usage["defs: <name>"] = "list all definitions for `name`"
usage["code: <name>"] = "display the code for `name`"
usage["lin: <name>"] = "display the linearization for `name`"
usage["uml: <name>"] = "display the UML diagram for `name`"
usage["graph: <name>"] = "display the inheritance graph for `name`"
usage["parents: <name>"] = "list the direct parents of `name`"
usage["ancestors: <name>"] = "list all ancestors of `name`"
usage["children: <name>"] = "list direct children of `name`"
usage["descendants: <name>"] = "list all descendants of `name`"
usage["param: <type>"] = "list all methods accepting `type` as parameter"
usage["return: <type>"] = "list all methods returning `type`"
usage["new: <class>"] = "list all methods initializing `class`"
usage["call: <property>"] = "list all methods calling `property`"
usage["list: <kind>"] = "list all entities of `kind` from the model"
usage["random: <kind>"] = "list random entities of `kind` from the model"
usage["catalog:"] = "list packages from catalog"
usage["stats:"] = "display catalog statistics"
usage["tags:"] = "list all tabs from catalog"
usage["tag: <tag>"] = "list all packages with `tag`"
usage["maintain: <person>"] = "list all packages maintained by `person`"
usage["contrib: <person>"] = "list all packages contributed by `person`"
# Ini commands
usage["ini-desc: <package>"] = "display the description from the `package` ini file"
usage["ini-git: <package>"] = "display the git url from the `package` ini file"
usage["ini-issues: <package>"] = "display the issues url from the `package` ini file"
usage["ini-license: <package>"] = "display the license from the `package` ini file"
usage["ini-maintainer: <package>"] = "display the maintainer from the `package` ini file"
usage["ini-contributors: <package>"] = "display the contributors from the `package` ini file"
usage["license-file: <package>"] = "display the license file for the `package`"
usage["license-content: <package>"] = "display the license file content for the `package`"
usage["contrib-file: <package>"] = "display the contrib file for the `package`"
usage["contrib-content: <package>"] = "display the contrib file content for the `package`"
usage["git-clone: <package>"] = "display the git clone command for the `package`"
# Main
usage["mains: <name>"] = "display the list of main methods for `name`"
usage["main-compile: <name>"] = "display the nitc command to compile `name`"
usage["main-run: <name>"] = "display the command to run `name`"
usage["main-opts: <name>"] = "display the command options for `name`"
usage["testing: <name>"] = "display the nitunit command to test `name`"
return usage
end
src/doc/commands/commands_parser.nit:51,2--97,4