nitc :: CmdEntities
nitc :: CmdEntities :: _sorter
nitc :: CmdEntities :: defaultinit
nitc $ CmdEntities :: SELF
Type of this instance, automatically specialized in every classnitc $ CmdEntities :: sorter=
Comparator used to sort the listnitc :: html_commands $ CmdEntities :: to_html
Render results as a HTML stringnitc :: md_commands $ CmdEntities :: to_md
Render results as a Markdown stringnitc :: CmdEntities :: _sorter
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: DocCommand :: cmd_filter
Return a new filter for that command execution.nitc :: DocCommand :: defaultinit
core :: Object :: defaultinit
nitc :: CmdList :: defaultinit
nitc :: CmdEntities :: defaultinit
nitc :: DocCommand :: execute
nitc :: DocCommand :: filter=
ModelFilter to apply if anynitc :: DocCommand :: http_init
Init the command from an HTTPRequestcore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: DocCommand :: parser_init
Initialize the command from the CommandParser datanitc :: CmdList :: print_list
nitc :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
nitc :: CmdCatalogContributing
Retrieve the packages contributed by a person
# A list of mentities
abstract class CmdEntities
super CmdList
redef type ITEM: MEntity
redef var sorter = new MEntityNameSorter
end
src/doc/commands/commands_base.nit:308,1--315,3
redef class CmdEntities
redef fun to_md do
var mentities = self.results
if mentities == null then return ""
var tpl = new Template
for mentity in mentities do
var mdoc = mentity.mdoc_or_fallback
tpl.add "* `{mentity}`"
if mdoc != null then
tpl.add " - "
tpl.add mdoc.synopsis
end
tpl.add "\n"
end
return tpl.write_to_string
end
end
src/doc/templates/md_commands.nit:56,1--73,3
redef class CmdEntities
redef fun to_html do
var mentities = self.results
if mentities == null then return ""
var tpl = new Template
tpl.add "<ul>"
for mentity in mentities do
var mdoc = mentity.mdoc_or_fallback
tpl.add "<li>"
tpl.add mentity.html_link
if mdoc != null then
tpl.add " - "
tpl.add mdoc.html_synopsis
end
tpl.add "</li>"
end
tpl.add "</ul>"
return tpl.write_to_string
end
end
src/doc/templates/html_commands.nit:59,1--79,3