IDL file pulling method and device, computer equipment and storage medium

A file and folder technology, applied in the computer field, can solve the problems of inconvenient search for IDL files, reduce the efficiency of IDL file pull, etc., achieve the effect of reducing storage resource overhead, avoiding cumbersome manual switching operations, and reducing time

Pending Publication Date: 2020-11-17
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, when using IDL files to generate interface codes, it is necessary to manually pull the git warehouse from the git remote server to the local. Since the pulled git warehouse contains many IDL files that are not required by the current business, it is inconvenient to find the required IDL files. Reduced pull efficiency of IDL files

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
  • IDL file pulling method and device, computer equipment and storage medium
  • IDL file pulling method and device, computer equipment and storage medium
  • IDL file pulling method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] see figure 1 As shown, a flowchart of a method for pulling an IDL file provided by Embodiment 1 of the present disclosure, the method includes steps S101-S104, wherein:

[0067] S101: Obtain the pull information of the IDL file.

[0068] In this step, the user can write the IDL file pull information in the configuration file according to the IDL file required by the current business and according to the preset format, wherein the IDL file pull information can at least include the git warehouse identification, the entry IDL file regular expressions and output folders, etc.

[0069] When the git warehouse is hosted on the git remote server, the git warehouse address can be used for unique identification. Therefore, the above git warehouse identity can be the git warehouse address, that is, the corresponding code warehouse can be found on the git remote server according to the git warehouse address. .

[0070] It should be understood that the git repository identifier m...

Embodiment 2

[0098] During specific implementation, since different versions of IDL files are hosted in the git warehouse, the git warehouse contains many git warehouse branches, and the IDL file required by the current business project is usually only one of the git warehouse branches. In order to further improve the efficiency of pulling the IDL file, in the embodiment of the present disclosure, the IDL file pulling information may also include the git warehouse branch identification. According to the git warehouse branch identification, after pulling the git warehouse into the temporary folder, it The git repository branch ID switches to the corresponding git repository branch. The git repository branch identifier can be the git repository branch name.

[0099] If the pull information of the IDL file includes the git repository branch identifier, in step S102, a command string may be generated according to the git repository identifier, the temporary folder path, and the git repository ...

Embodiment 3

[0105] refer to image 3 As shown, a schematic diagram of pulling an IDL file provided in Embodiment 3 of the present disclosure, the device includes: an obtaining module 301, a generating module 302, a pulling module 303, a parsing module 304, and a copying module 305; wherein,

[0106] The acquisition module 301 is used to read the user-specified interface description language IDL file pull information, the IDL file pull information at least includes the distributed version control system git warehouse identifier, the entry IDL file regular expression and the output folder path;

[0107] The generating module 302 is configured to generate a command string at least according to the git repository identifier and the temporary folder path, wherein the temporary folder is pre-created, and the git repository identifier may be a git repository address.

[0108] The pulling module 303 is used to call the git command to pull the git warehouse into the temporary folder according to t...

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 an IDL file pulling method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining IDL file pulling information which at least comprises a distributed version control system git warehouse identification, an entry IDL file regular expression and an output folder path; generating a command character string at least according to the git warehouse identifier and a temporary folder path, the temporary folder being pre-created; according to the generated command character string, calling a git command to pull a git warehouse into a temporary folder; recursively analyzing the regular expression of the entry IDL file to obtain a required IDL file path; and copying the required IDL file from the temporary folder according to the required IDL file path and the output folder path. According to the embodiment of the invention, the IDL file is pulled as required, and the IDL file pulling efficiency is improved.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, a computer device and a storage medium for pulling an IDL file. Background technique [0002] Git is an open source distributed version control system that efficiently handles version management of projects. Git supports branch management, which can facilitate multi-person collaborative development. In order to manage the project code conveniently, the project code is generally hosted on the git remote server. After the developer develops the application code locally, it is pushed to the remote server, and others can pull the code developed by the developer from the remote server. Git provides a local command line tool, which can easily interact with the git remote server using the git command line tool. [0003] Applications are generally divided into client and server, and the server generally contains multiple sub-services. The intera...

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): G06F8/71G06F9/448
CPCG06F8/71G06F9/4482
Inventor 邬亮
Owner BEIJING BYTEDANCE NETWORK 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