nitc :: CmdCatalogPackages :: _sorter
nitc $ CmdCatalogPackages :: SELF
Type of this instance, automatically specialized in every classnitc $ CmdCatalogPackages :: init_results
Initialize theresults
list
nitc $ CmdCatalogPackages :: sorter
Comparator used to sort the listnitc $ CmdCatalogPackages :: sorter=
Comparator used to sort the listnitc :: CmdCatalogPackages :: _sorter
nitc :: 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 :: CmdList :: defaultinit
nitc :: DocCommand :: defaultinit
nitc :: CmdEntities :: defaultinit
nitc :: CmdCatalog :: defaultinit
core :: Object :: 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
# Retrieve the packages in the catalog
class CmdCatalogPackages
super CmdCatalog
super CmdEntities
autoinit(model, catalog, filter, limit, page, count, max)
redef var sorter = new CatalogScoreSorter(catalog) is lazy
redef fun init_results do
if results != null then return new CmdSuccess
var res = super
if not res isa CmdSuccess then return res
results = catalog.mpackages.values.to_a
return res
end
end
src/doc/commands/commands_catalog.nit:133,1--151,3
redef class CmdCatalogPackages
redef fun execute(no_color) do
print_list("Packages from catalog:", results, no_color)
end
end
src/doc/term/term.nit:281,1--285,3