Method and equipment for editing YAML file

An editing and file technology, applied in the computer field, can solve problems such as difficult writing, inability to parse and apply files correctly, and achieve the effect of reducing format errors, reducing maintenance costs, and improving efficiency

Active Publication Date: 2021-06-22
SHANDONG YINGXIN COMP TECH CO LTD
View PDF13 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In previous YAML files (a highly readable format used to express data serialization, YAML is "YAMLAin't a Markup Language" (YAML is not a In the recursive abbreviation) editing method of a markup language), the operator needs to have a deep understanding and memory of the format of the YAML file. If there are wrong grammar rules, the file cannot be parsed and applied correctly. Therefore, operators with non-professional background It is difficult to write YAML files smoothly

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and equipment for editing YAML file
  • Method and equipment for editing YAML file
  • Method and equipment for editing YAML file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0047] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a method for editing a YAML file. figure 1 Shown is a schematic flow chart of the method.

[0048] Such as figure 1 As shown in , the method may include the following steps:

[0049] S1 converts the YAML file to be edited into a text format, and judges whether there are multiple sets of YAML data in the YAML file in the text format. Open the YAML file in the text format to convert the YAML file into a text format. In the YAML file, it is possible There are one or more sets of YAML data, so after the YAML file is converted into text format, it is necessary to determine whether there...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and equipment for editing a YAML file, and the method comprises the steps: converting a to-be-edited YAML file into a text format, and judging whether a plurality of groups of YAML data exist in the text format YAML file or not; responding to the situation that multiple groups of YAML data do not exist in the YAML file in the text format, and converting the YAML file in the text format into object information in a JSON format; traversing all elements in the object information in the JSON format, generating a form item from the object information in the JSON format, and filling all the elements into corresponding positions in the form item; editing the content in the form item, and converting the edited form item into a YAML file. According to the scheme, the operation threshold of editing the YAML file can be reduced, the maintenance cost can be reduced, the efficiency can be improved, and the situation that the file cannot be normally used due to format errors caused by manual operation errors is reduced.

Description

technical field [0001] The field relates to the field of computers, and more particularly to a method and device for editing YAML files. Background technique [0002] In the previous editing method of YAML files (a highly readable format used to express data serialization, YAML is a recursive abbreviation of "YAMLAin't a Markup Language" (YAML is not a markup language)), operators were required to Have a deep understanding and memory of the format of the YAML file. If there is a wrong grammatical rule, the file will not be parsed and applied correctly. Therefore, it is difficult for operators with a non-professional background to write YAML files smoothly. Contents of the invention [0003] In view of this, the purpose of the embodiments of the present invention is to propose a method and device for editing YAML files. By using the technical solution of the present invention, the operation threshold for editing YAML files can be reduced, maintenance costs can be reduced, e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/11G06F40/174
CPCG06F16/116G06F40/174
Inventor 候小雨
Owner SHANDONG YINGXIN COMP TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products