CN113190266A - Control method, device, equipment and storage medium - Google Patents
Control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113190266A CN113190266A CN202110569752.XA CN202110569752A CN113190266A CN 113190266 A CN113190266 A CN 113190266A CN 202110569752 A CN202110569752 A CN 202110569752A CN 113190266 A CN113190266 A CN 113190266A
- Authority
- CN
- China
- Prior art keywords
- git
- instruction
- executed
- information
- project
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 18
- 238000009434 installation Methods 0.000 abstract description 5
- 238000011161 development Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000001914 filtration Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a control method, a control device, control equipment and a storage medium. The method comprises the following steps: acquiring project information and a git instruction to be executed; determining the state information of the project according to the project information; and if the project is determined to be in a normal state according to the state information of the project, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed. And the method does not support the user-defined configuration git management process, and has the problems of complex environment installation, difficult operation, low efficiency, incapability of generating a file report and the like.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a control method, a control device, control equipment and a storage medium.
Background
git is an open-source distributed version control system, and in a multi-user development team, because the behavior habits of each developer using the git control system are inconsistent, the git control system is large in openness and multiple in use scenes. When a plurality of people maintain the same project, many change records are produced on the best name, the reason is that version confusion is caused by the fact that branch management and push-pull codes are not standard, team members cannot be well restricted to manage the project in a consistent mode, when the project report needs to be checked, a plurality of commands need to be operated to filter information, the information can only be checked on a cli interface, and the file report cannot be exported.
In the prior art, project code management is performed through jgitflow + maven, and java, maven and other complex environments need to be installed when the project is managed through jgitflow + maven. And the method does not support the user-defined configuration git management process, and has the problems of complex environment installation, difficult operation, low efficiency, incapability of generating a file report and the like. In addition, the direct use of git management projects has high requirements on development members, requires great proficiency in mastering various commands of git control systems, is not favorable for developers to understand the use scenes of the various commands, and cannot establish a standard project management mechanism.
Disclosure of Invention
The embodiment of the invention provides a control method, a control device, control equipment and a storage medium, which are used for standardizing the operation flow of the whole project, performing project management on a control system through a cli tool developed by a node and based on the cli tool.
In a first aspect, an embodiment of the present invention provides a control method, which is executed by a cli tool, where the cli tool is developed based on a node, and includes:
acquiring project information and a git instruction to be executed;
determining the state information of the project according to the project information;
and if the item is determined to be in a normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
In a second aspect, an embodiment of the present invention further provides a control apparatus, where the control apparatus includes:
the acquisition module is used for acquiring the project information and the git instruction to be executed;
the determining module is used for determining the state information of the project according to the project information;
and the sending module is used for sending the git instruction to be executed to a control system if the item is determined to be in a normal state according to the state information of the item, so that the control system executes the git instruction to be executed.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the control method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the control method according to any one of the embodiments of the present invention.
The method comprises the steps that project information and a git instruction to be executed are obtained through a cli tool obtained based on node development; determining the state information of the project according to the project information; and if the project is determined to be in a normal state according to the state information of the project, sending the git instruction to be executed to a control system, so that the control system executes the git instruction to be executed, and solving various complex environments such as java and maven which need to be installed when the project is managed by using jgitflow + maven. The method is not supported for self-defining configuration of the git management process, has the problems of complex environment installation, difficult operation, low efficiency, incapability of generating file reports and the like, can solve the problems that the git management project is directly used, the requirement on development members is high, various commands of a git control system need to be mastered very skillfully, a developer cannot understand the use scenes of the various commands directly, and a standard project management mechanism cannot be established, can standardize the operation process of the whole project, and carries out project management on the control system through a cli tool developed by a node.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a control method according to a first embodiment of the present invention;
FIG. 1a is a flowchart of a report file generation method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a control device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a control method according to an embodiment of the present invention, where the present embodiment is applicable to a case of an operation flow of a specification project, and the method may be executed by a control apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, acquiring the project information and the git instruction to be executed.
Among them, a command-line interface (cli) is the most widely used user interface before graphical user interfaces are popularized, and it usually does not support a mouse, and a user inputs an instruction through a keyboard, and a computer receives the instruction and executes it. Also known as a Character User Interface (CUI).
The cli tool in the embodiment of the invention is a cli tool developed based on a node.
Wherein the item information may include: a target configuration file, which may be a git management process configuration file, the git management process configuration file including: a git instruction table, the git instruction table comprising: git instruction and step information; the item information may further include: and (5) project flow.
The obtaining mode of the to-be-executed git instruction may be as follows: the obtaining times are determined in advance, and the git instruction to be executed is determined according to the obtaining times, for example, if the obtaining times are the first time, the git instruction input or selected by a user is determined as the git instruction to be executed, or any git instruction in the git instruction list is determined as the git instruction to be executed. And if the obtaining times are not the first time, selecting a git instruction to be executed from the git instruction list according to feedback information corresponding to a first git instruction, wherein the first git instruction is a previous git instruction of the git instruction to be executed. The embodiments of the present invention are not limited in this regard.
For example, the obtaining of the project information and the to-be-executed git instruction may be, for example, developing a cli tool based on a node, and reading the project information through the cli tool, where the project information includes: a target profile, the target profile comprising: a git instruction table; if the git instruction to be executed is obtained for the first time, determining the git instruction input or selected by the user as the git instruction to be executed; or determining any git instruction in the git instruction list as a git instruction to be executed, and if the git instruction to be executed is not obtained for the first time, selecting the git instruction to be executed from the git instruction list according to feedback information corresponding to a first git instruction, wherein the first git instruction is a previous git instruction of the git instruction to be executed.
And S120, determining the state information of the item according to the item information.
The status information of the item may be that the item is in a normal status or an abnormal status.
For example, the manner of determining the status information of the item according to the item information may be: pre-establishing a judgment rule, and determining the state information of the project according to the project information and the judgment rule; the manner of determining the status information of the project according to the project information may further be: if the item information meets the preset condition, it is determined that the status information of the item is in a normal state, and if the item information does not meet the preset condition, it is determined that the status information of the item is in an abnormal state.
And S130, if the item is determined to be in a normal state according to the state information of the item, sending the git instruction to be executed to a control system, so that the control system executes the git instruction to be executed.
The control system may be a distributed version control system, for example, the control system may be a git control system.
For example, if it is determined that the item is in a normal state according to the state information of the item, the to-be-executed git instruction is sent to a control system, so that the control system executes the to-be-executed git instruction, for example, if it is determined that the item is in a normal state according to the state information of the item, and it is determined that the to-be-executed git instruction conforms to the item flow, the to-be-executed git instruction is sent to the control system, so that the control system executes the to-be-executed git instruction.
Optionally, the method further includes:
and if the item is in an abnormal state, generating prompt information and displaying the prompt information.
Wherein, the prompt message may include at least one piece of suggestion message for the user to select.
The manner of displaying the prompt information may be to display the prompt information on a floating window, or to directly display the prompt information on a cli interface, which is not limited in this embodiment of the present invention.
For example, if the item is in the abnormal state, the prompt information is generated and displayed, for example, if the item is in the abnormal current state, the reason that the item is in the abnormal state is acquired, the prompt information is determined according to the reason that the item is in the abnormal state, and the prompt information is displayed.
Optionally, the item information includes: a project flow;
if the item is determined to be in the normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed, wherein the step of:
if the item is determined to be in a normal state according to the state information of the item, acquiring first step information corresponding to the git instruction to be executed;
and if the first step information conforms to the project flow, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
The project flow may be an order of executing steps, and for example, step a may be executed first, step B may be executed after step a is executed, and step C may be executed after step B is executed.
The method for acquiring the first step information corresponding to the git instruction to be executed may be as follows: and acquiring the corresponding relation between the git instruction and the step information stored in the project information, and inquiring the corresponding relation between the git instruction and the step information according to the git instruction to be executed to obtain the first step information corresponding to the git instruction to be executed. For example, the git instruction a corresponds to the step information a, the git instruction B corresponds to the step information B, and the git instruction C corresponds to the step information C, and if the git instruction to be executed is the git instruction a, the first step information corresponding to the git instruction a is acquired as the step information a.
The method for judging whether the first step information conforms to the project flow may be: acquiring second step information corresponding to a previous instruction of a git instruction to be executed, querying a project flow according to the first step information, and if the step corresponding to the first step information is located after the step corresponding to the second step information, determining that the first step information conforms to the project flow, or may be, if the step corresponding to the first step information is located after the step corresponding to the second step information and is adjacent to the step corresponding to the second step information, determining that the first step information conforms to the project flow. For example, if the project flow is: step A is executed first, step B is executed after step A is executed, and step C is executed after step B is executed. And B, determining that the step corresponding to the second step information is the step B according to the second step information corresponding to the previous instruction of the git instruction to be executed, and if the step corresponding to the first step information is the step C, determining that the first step information accords with the project process. And B, determining that the step corresponding to the second step information is the step B according to the second step information corresponding to the previous instruction of the git instruction to be executed, and if the step corresponding to the first step information is the step A, determining that the first step information does not accord with the project flow.
Illustratively, if the item is determined to be in a normal state according to the state information of the item, acquiring first step information corresponding to the git instruction to be executed; if the first step information conforms to the project flow, sending the git instruction to be executed to a control system so as to enable the control system to execute the git instruction to be executed, for example, if the project is determined to be in a normal state according to the state information of the project, obtaining the first step information corresponding to the git instruction to be executed, judging whether the first step information conforms to the project flow, and if the first step information conforms to the project flow, sending the git instruction to be executed to the control system so as to enable the control system to execute the git instruction to be executed; and if the first step information does not accord with the project flow, generating prompt information and displaying the prompt information.
Optionally, the item information includes: a target profile, the target profile comprising: a git instruction table;
the first obtaining of the git instruction to be executed comprises the following steps:
determining a git instruction input or selected by a user as a git instruction to be executed;
or,
determining any git instruction in the git instruction table as a git instruction to be executed.
Wherein the target configuration file may be a git management process configuration file.
Optionally, the item information includes: a target profile, the target profile comprising: a git instruction table;
the non-first fetch pending git instruction includes:
selecting a git instruction to be executed from the git instruction table according to feedback information corresponding to a first git instruction, wherein the first git instruction is a git instruction which is previous to the git instruction to be executed.
Illustratively, the manner of selecting the git instruction to be executed from the git instruction table according to the feedback information corresponding to the first git instruction may be: and pre-establishing an instruction selection rule, and selecting the git instruction to be executed from the git instruction list according to the instruction selection rule and the feedback information corresponding to the first git instruction. For example, an instruction selection rule is pre-established, feedback information x corresponds to a git instruction y, feedback information z corresponds to a git instruction p, feedback information u corresponds to a git instruction i, and feedback information e corresponds to a git instruction f, and if the feedback information corresponding to the first git instruction is the feedback information x, the git instruction to be executed selected from the git instruction table is the git instruction y.
Illustratively, the manner of selecting the git instruction to be executed from the git instruction table according to the feedback information corresponding to the first git instruction may also be: determining a target keyword according to feedback information corresponding to the first git instruction, establishing a corresponding relation between the target keyword and the git instruction in advance, inquiring the corresponding relation according to the target keyword to obtain the git instruction corresponding to the target keyword, for example, the target keyword R corresponds to the git instruction T, the target keyword H corresponds to the git instruction L, the target keyword M corresponds to the git instruction N, determining the target keyword as the target keyword M according to the feedback information corresponding to the first git instruction, inquiring the corresponding relation according to the target keyword M to obtain the git instruction N corresponding to the target keyword M, and determining the git instruction N as the git instruction to be executed.
Optionally, before determining the git instruction to be executed according to the feedback information corresponding to the first git instruction, the method further includes:
sending a first git instruction to a control system to cause the control system to execute the first git instruction;
and receiving feedback information which is sent by the control system and aims at the first git instruction.
Optionally, the method further includes:
acquiring the type and the characteristic information of a target report;
selecting a target log file from historical log files according to the type and the characteristic information of the target report;
and generating a target report according to the target log file.
Optionally, if the item is in a normal state, sending the to-be-executed git instruction to a control system, so that the control system executes the to-be-executed git instruction, including:
if the item is in a normal state, the git instruction to be executed is a branch creating instruction, and the item is not modified, determining a target branch according to a branch type selected by a user, creating a target branch instruction according to the target branch, and sending the target branch instruction to a control system so that the control system executes the git instruction to be executed.
Optionally, the method further includes:
and if the item is in a normal state, the to-be-executed git instruction is a branch creating instruction, and the item is modified, generating suggestion information and displaying the suggestion information.
In a specific example, a target configuration file is written in a project according to a specified rule, a cli tool provided by the embodiment of the invention automatically reads the target configuration file, a developer can obtain all git instructions through a basic command, the cli tool can detect whether a project process exists or not when inputting a git instruction to be executed, a creation branch in project management is taken as an example, after the developer selects the creation branch command on a cli interface, the cli tool can firstly obtain the state information of a current project, and if the project is determined to be in a normal state according to the state information of the current project and the project is modified, a selection suggestion is given; if the project is determined to be in a normal state according to the state information of the current project and the project is not modified, the selection of creating the branch is given according to the rule configured in advance by the configuration file, the git branch is obtained, and the developer can create the branch based on the baseBranch key in the configuration file only by selecting the type of the branch required by the developer.
In another specific example, as shown in fig. 1a, a developer may select a type of a report to be generated on a cli interface, for example, a new function version report of the current month needs to be generated, that is, only "monthly report" and "feature" need to be selected on the cli selection interface, a target log file is obtained from all history log files submitted in the current month according to the "monthly report" and the "feature", and the developer may select a generation form, select an excle or a picture png, jpg, and the like, and trigger generation of a file controller after selection, so as to generate a monthly report file.
The method and the device for managing the project based on the git have the advantages that the project management capability is matched with a simple node command, a locally written configuration file can be read without an excessively complex development environment, the configuration file can be a json file or a js file, unified configuration can be defined to restrict the operation behaviors of project members, the standardized management project is realized, meanwhile, the visual operation is realized through a cli interface, the convenient operation is provided for developers, a series of processes of git commands are simplified, the developers can select the operation to be performed through the cli interface, various errors caused by manual command input are avoided, if the commands are required to be manually input, operation command suggestions and warnings can be provided according to the configuration, each link is provided with a monitoring log, and the problem caused by the project is conveniently traced back.
The embodiment of the invention increases the prefabricated filtering conditions by using the log file of the git control system, improves the efficiency of filtering operation, pays attention to the convenience of operation and user experience, and can generate various file type reports by one key so as to facilitate the report job and project summary of developers.
The embodiment of the invention reads project information through a cli tool developed based on a node, wherein the project information comprises: and a target configuration file, which can be a git management process configuration file, wherein a git instruction input or selected by a user is determined as a git instruction to be executed, a cli tool determines the state information of the project according to the project information, if the project is determined to be in a normal state according to the state information of the project, then, whether the git instruction to be executed meets the standard process is verified, if the git instruction to be executed meets the standard process, the execution is allowed, if the git instruction does not meet the output reason, a developer is informed, and the operation process of the whole project is standardized.
In the prior art, a git control system provides various query submission record commands, and when a developer needs to filter important information, a plurality of filtering query conditions need to be input each time, which is very complicated, and the git control system cannot directly generate a report of an excel or a picture. The embodiment of the invention selects the precondition for generating the report on the cli interface, and the precondition comprises the following steps: report type and characteristic information, and an excel report or a picture report can be generated by filtering required information without inputting commands by a developer.
According to the technical scheme of the embodiment, project information and a git instruction to be executed are acquired through a cli tool which is developed based on a node; determining the state information of the project according to the project information; and if the project is determined to be in a normal state according to the state information of the project, sending the git instruction to be executed to a control system, so that the control system executes the git instruction to be executed, and solving various complex environments such as java and maven which need to be installed when the project is managed by using jgitflow + maven. The method is not supported for self-defining configuration of the git management process, has the problems of complex environment installation, difficult operation, low efficiency, incapability of generating file reports and the like, can solve the problems that the git management project is directly used, the requirement on development members is high, various commands of a git control system need to be mastered very skillfully, a developer cannot understand the use scenes of the various commands directly, and a standard project management mechanism cannot be established, can standardize the operation process of the whole project, and carries out project management on the control system through a cli tool developed by a node.
Example two
Fig. 2 is a schematic structural diagram of a control device according to a second embodiment of the present invention. The present embodiment may be applicable to the case of operation flow of a specified project, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device providing a control function, as shown in fig. 2, where the control apparatus specifically includes: an acquisition module 210, a determination module 220, and a sending module 230.
The acquisition module is used for acquiring the project information and the git instruction to be executed;
the determining module is used for determining the state information of the project according to the project information;
and the sending module is used for sending the git instruction to be executed to a control system if the item is determined to be in a normal state according to the state information of the item, so that the control system executes the git instruction to be executed.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, project information and a git instruction to be executed are acquired through a cli tool which is developed based on a node; determining the state information of the project according to the project information; and if the project is determined to be in a normal state according to the state information of the project, sending the git instruction to be executed to a control system, so that the control system executes the git instruction to be executed, and solving various complex environments such as java and maven which need to be installed when the project is managed by using jgitflow + maven. The method is not supported for self-defining configuration of the git management process, has the problems of complex environment installation, difficult operation, low efficiency, incapability of generating file reports and the like, can solve the problems that the git management project is directly used, the requirement on development members is high, various commands of a git control system need to be mastered very skillfully, a developer cannot understand the use scenes of the various commands directly, and a standard project management mechanism cannot be established, can standardize the operation process of the whole project, and carries out project management on the control system through a cli tool developed by a node.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 3 is only an example and should not impose any limitation on the scope of use or functionality of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the control method provided by the embodiment of the present invention:
acquiring project information and a git instruction to be executed;
determining the state information of the project according to the project information;
and if the item is determined to be in a normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
Example four
A fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the control method provided in all the embodiments of the present invention of the present application:
acquiring project information and a git instruction to be executed;
determining the state information of the project according to the project information;
and if the item is determined to be in a normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A control method executed by a cli tool developed based on a node, the control method comprising:
acquiring project information and a git instruction to be executed;
determining the state information of the project according to the project information;
and if the item is determined to be in a normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
2. The method of claim 1, further comprising:
and if the item is in an abnormal state, generating prompt information and displaying the prompt information.
3. The method of claim 1, wherein the item information comprises: a project flow;
if the item is determined to be in the normal state according to the state information of the item, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed, wherein the step of:
if the item is determined to be in a normal state according to the state information of the item, acquiring first step information corresponding to the git instruction to be executed;
and if the first step information conforms to the project flow, sending the git instruction to be executed to a control system so that the control system executes the git instruction to be executed.
4. The method of claim 1, wherein the item information comprises: a target profile, the target profile comprising: a git instruction table;
the first obtaining of the git instruction to be executed comprises the following steps:
determining a git instruction input or selected by a user as a git instruction to be executed;
or,
determining any git instruction in the git instruction table as a git instruction to be executed.
5. The method of claim 1, wherein the item information comprises: a target profile, the target profile comprising: a git instruction table;
the non-first fetch pending git instruction includes:
selecting a git instruction to be executed from the git instruction table according to feedback information corresponding to a first git instruction, wherein the first git instruction is a git instruction which is previous to the git instruction to be executed.
6. The method of claim 5, before determining the git instruction to be executed according to the feedback information corresponding to the first git instruction, further comprising:
sending a first git instruction to a control system to cause the control system to execute the first git instruction;
and receiving feedback information which is sent by the control system and aims at the first git instruction.
7. The method of claim 1, further comprising:
acquiring the type and the characteristic information of a target report;
selecting a target log file from historical log files according to the type and the characteristic information of the target report;
and generating a target report according to the target log file.
8. A control device, characterized in that the control device comprises:
the acquisition module is used for acquiring the project information and the git instruction to be executed;
the determining module is used for determining the state information of the project according to the project information;
and the sending module is used for sending the git instruction to be executed to a control system if the item is determined to be in a normal state according to the state information of the item, so that the control system executes the git instruction to be executed.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110569752.XA CN113190266A (en) | 2021-05-25 | 2021-05-25 | Control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110569752.XA CN113190266A (en) | 2021-05-25 | 2021-05-25 | Control method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113190266A true CN113190266A (en) | 2021-07-30 |
Family
ID=76985160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110569752.XA Pending CN113190266A (en) | 2021-05-25 | 2021-05-25 | Control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190266A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800018A (en) * | 2019-01-10 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of code administration method and system based on Gerrit |
CN111124376A (en) * | 2020-01-20 | 2020-05-08 | 众能联合数字技术有限公司 | Project building system for cod-eCli scaffold |
-
2021
- 2021-05-25 CN CN202110569752.XA patent/CN113190266A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800018A (en) * | 2019-01-10 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of code administration method and system based on Gerrit |
CN111124376A (en) * | 2020-01-20 | 2020-05-08 | 众能联合数字技术有限公司 | Project building system for cod-eCli scaffold |
Non-Patent Citations (2)
Title |
---|
BOOTO: "用Node.js开发一个Command Line Interface (CLI)", pages 1 - 14, Retrieved from the Internet <URL:《https://zhuanlan.zhihu.com/p/38730825》> * |
瑞瑞小跟班: "git日志导出为csv、excel文件", pages 1, Retrieved from the Internet <URL:《https://blog.csdn.net/qq_43474424/article/details/88837551》> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8473893B2 (en) | Integration of external software analysis processes with software configuration management applications | |
US9600519B2 (en) | Method and system to detect changes to graphical user interface screenshots used in documentation | |
US11947443B2 (en) | Robotic process automation (RPA) debugging systems and methods | |
US9798703B2 (en) | Systems and methods for navigating to errors in an XBRL document using metadata | |
US20080140671A1 (en) | Extensible application platform | |
US20170228220A1 (en) | Self-healing automated script-testing tool | |
US20220229769A1 (en) | Test automation systems and methods using logical identifiers | |
CN113971037A (en) | Application processing method and device, electronic equipment and storage medium | |
US10871951B2 (en) | Code correction | |
CN110955481A (en) | Label task generation method and device, storage medium and electronic equipment | |
KR101114038B1 (en) | Address support for resources in common-language runtime languages | |
CN109753437B (en) | Test program generation method and device, storage medium and electronic equipment | |
US11699115B2 (en) | System and method for modular customization of intermediate business documentation generation | |
CN114358742A (en) | Workflow execution method, device, equipment and storage medium | |
KR102505002B1 (en) | Code reuse processing method, device, electronic equipment, computer readable storage medium and computer program | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
CN114003269A (en) | Component processing method and device, electronic equipment and storage medium | |
US9250760B2 (en) | Customizing a dashboard responsive to usage activity | |
CN113190266A (en) | Control method, device, equipment and storage medium | |
CN112667116A (en) | Work order execution method and device, electronic equipment and storage medium | |
CN113392014A (en) | Test case generation method and device, electronic equipment and medium | |
CN113760317A (en) | Page display method, device, equipment and storage medium | |
US11194441B2 (en) | Process map navigation tool | |
US20070209020A1 (en) | Computer readable recording medium recorded with graphics editing program, and graphics editing apparatus | |
CN116185412B (en) | Data management method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |