mentity
nitc :: CmdContribFile :: _file_names
nitc :: CmdContribFile :: _file_url
nitc :: CmdContribFile :: defaultinit
nitc :: CmdContribFile :: file_names=
nitc $ CmdContribFile :: SELF
Type of this instance, automatically specialized in every classnitc :: json_commands $ CmdContribFile :: to_json
Return a JSON Serializable representation ofself
results
nitc :: CmdContribFile :: _file_names
nitc :: CmdContribFile :: _file_url
nitc :: CmdEntity :: _mentity_name
Name of the mentity this command is aboutcore :: 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 :: CmdEntityFile :: defaultinit
core :: Object :: defaultinit
nitc :: CmdEntity :: defaultinit
nitc :: CmdContribFile :: defaultinit
nitc :: DocCommand :: defaultinit
nitc :: DocCommand :: execute
nitc :: CmdContribFile :: file_names=
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.
nitc :: CmdEntity :: mentity_name
Name of the mentity this command is aboutnitc :: CmdEntity :: mentity_name=
Name of the mentity this command is aboutcore :: 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 :: CmdEntityFile :: print_file
Print filenitc :: CmdEntityFile :: throw_warning
nitc :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
mentity
# Cmd that finds the contributing file related to an `mentity`
class CmdContribFile
super CmdEntityFile
redef var file_names = ["CONTRIBUTING", "CONTRIBUTING.md", "CONTRIBUTING.txt"]
redef fun throw_warning do return new WarningNoContribFile(mentity.as(not null))
end
src/doc/commands/commands_ini.nit:339,1--345,3
redef class CmdContribFile
redef fun to_json do
var obj = new JsonObject
obj["file"] = file
return obj
end
end
src/doc/templates/json_commands.nit:238,1--244,3
redef class CmdContribFile
redef fun execute(no_color) do
print_file("Contributing rules from", no_color)
end
end
src/doc/term/term.nit:450,1--454,3