Init file related data

Property definitions

nitc $ CmdEntityFile :: init_file
	# Init file related data
	fun init_file: CmdMessage do
		var mentity = self.mentity.as(not null)

		var source_file = mentity.location.file
		if source_file == null then return throw_warning

		for file_name in file_names do
			var file = source_file.filename / file_name
			if not file.file_exists then continue
			self.file = file
			break
		end

		if file == null then return throw_warning

		return new CmdSuccess
	end
src/doc/commands/commands_ini.nit:271,2--288,4

nitc $ CmdEntityFileContent :: init_file
	redef fun init_file do
		var res = super
		if not res isa CmdSuccess then return res

		var file = self.file.as(not null)
		content = file.to_path.read_all
		return res
	end
src/doc/commands/commands_ini.nit:305,2--312,4