nitc :: CmdCatalogTag :: defaultinit
nitc $ CmdCatalogTag :: SELF
Type of this instance, automatically specialized in every classnitc :: commands_http $ CmdCatalogTag :: http_init
Init the command from an HTTPRequestnitc :: commands_parser $ CmdCatalogTag :: parser_init
Initialize the command from the CommandParser datanitc :: json_commands $ CmdCatalogTag :: to_json
Return a JSON Serializable representation ofself
results
nitc :: 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 :: DocCommand :: defaultinit
nitc :: CmdCatalog :: defaultinit
nitc :: CmdCatalogTag :: defaultinit
nitc :: CmdEntities :: defaultinit
nitc :: CmdList :: 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
# Retrieve the packages for a tag
class CmdCatalogTag
super CmdCatalogPackages
autoinit(model, catalog, filter, tag, limit, page, count, max)
# The tag to retrieve
var tag: nullable String = null is optional, writable
redef fun init_command do
var tag = self.tag
if tag == null then return new ErrorNoTag
if not catalog.tag2proj.has_key(tag) then return new ErrorTagNotFound(tag)
return super
end
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.tag2proj[tag].to_a
return res
end
end
src/doc/commands/commands_catalog.nit:191,1--217,3
redef class CmdCatalogTag
redef fun parser_init(mentity_name, options) do
tag = mentity_name
return super
end
end
src/doc/commands/commands_parser.nit:383,1--388,3