mentity
nitc :: CmdIniCloneCommand :: command=
Clone commandnitc $ CmdIniCloneCommand :: SELF
Type of this instance, automatically specialized in every classnitc :: html_commands $ CmdIniCloneCommand :: to_html
Render results as a HTML stringnitc :: json_commands $ CmdIniCloneCommand :: to_json
Return a JSON Serializable representation ofself
results
nitc :: md_commands $ CmdIniCloneCommand :: to_md
Render results as a Markdown stringnitc :: 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 :: CmdIniCloneCommand :: command=
Clone commandnitc :: CmdIni :: defaultinit
nitc :: DocCommand :: defaultinit
nitc :: CmdEntity :: defaultinit
core :: Object :: defaultinit
nitc :: CmdIniGitUrl :: 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.
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 :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
# Cmd that finds the git clone command related to an `mentity`
class CmdIniCloneCommand
super CmdIniGitUrl
# Clone command
var command: nullable String is lazy do
var url = self.url
if url == null then return null
return "git clone {url}"
end
end
src/doc/commands/commands_ini.nit:116,1--126,3
redef class CmdIniCloneCommand
redef fun to_json do
var obj = new JsonObject
obj["command"] = command
return obj
end
end
src/doc/templates/json_commands.nit:182,1--188,3
redef class CmdIniCloneCommand
redef fun execute(no_color) do
var title = "Git clone command from ini file:"
print_ini(title, command, no_color)
end
end
src/doc/term/term.nit:381,1--386,3