[go: up one dir, main page]

CN114840192A - Method for upgrading and transforming existing command line by using command line paradigm - Google Patents

Method for upgrading and transforming existing command line by using command line paradigm Download PDF

Info

Publication number
CN114840192A
CN114840192A CN202210413995.9A CN202210413995A CN114840192A CN 114840192 A CN114840192 A CN 114840192A CN 202210413995 A CN202210413995 A CN 202210413995A CN 114840192 A CN114840192 A CN 114840192A
Authority
CN
China
Prior art keywords
command line
paradigm
command
line
program
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
Application number
CN202210413995.9A
Other languages
Chinese (zh)
Inventor
杨杰
冯金军
杨经明
冷俊杰
陈清华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Clounix Technology Ltd
Original Assignee
Hangzhou Clounix Technology Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Clounix Technology Ltd filed Critical Hangzhou Clounix Technology Ltd
Priority to CN202210413995.9A priority Critical patent/CN114840192A/en
Publication of CN114840192A publication Critical patent/CN114840192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for upgrading and transforming an existing command line by using a command line paradigm, which comprises the following steps: generating a plurality of command line paradigm descriptions for the existing command line according to the command line paradigm; acquiring a program irrelevant to a command line, inputting command line paradigm description in the program irrelevant to the command line, and generating a new command line; when a program of a new command line is started, acquiring data described by all command lines in a canonical form; the new command line program analyzes the data described by the command line paradigm and creates a paradigm description database; after the user inputs data, the data described by the command line model is used for carrying out command line combination on the data input by the user to obtain a combined command line; and sending the combined command line to the program of the existing command line to execute the corresponding command, if the execution is successful, returning an execution result, and if the execution is failed, outputting a failed result. The invention can reduce the workload and improve the efficiency of upgrading and reconstructing the command line.

Description

使用命令行的范式对已有命令行进行升级改造的方法The method of using the command line paradigm to upgrade the existing command line

技术领域technical field

本发明涉及人机交互技术领域,特别涉及一种使用用命令行的范式对已有命令行进行升级改造的方法。The invention relates to the technical field of human-computer interaction, in particular to a method for upgrading and transforming an existing command line by using a command line paradigm.

背景技术Background technique

随着人机交互技术的进步,对现有的系统进行人机交互方面的升级改造的需求也越发迫切。通过对原有系统进行升级改造,可以发展出多元化的人机交互方式,例如web的方式,移动端的方式,新式的命令行(交互式,支持模糊匹配等)的方式等。例如原有的命令行很多不支持自动补全功能,对于这样的系统,通过升级改造,可以实现自动补全,错误高亮,历史记录保存等丰富的功能。With the advancement of human-computer interaction technology, the need for upgrading and transforming existing systems in human-computer interaction is becoming more and more urgent. By upgrading and transforming the original system, a variety of human-computer interaction methods can be developed, such as the web method, the mobile terminal method, and the new command line (interactive, fuzzy matching, etc.) method. For example, many of the original command lines do not support the auto-completion function. For such a system, through upgrading, rich functions such as auto-completion, error highlighting, and historical record preservation can be realized.

现有的系统中,特别是在网络设备的系统中,通过命令行的方式进行人机交互的设备系统占有量较大,这些系统具有命令行众多,逻辑复杂等特点。对这些系统进行升级改造,往往需要较大的工作量。In the existing systems, especially in the system of network equipment, the equipment systems that perform human-computer interaction through command lines occupy a large amount, and these systems have the characteristics of numerous command lines and complex logic. Upgrading these systems often requires a large workload.

目前对现有的系统进行升级改造,主要有三种方式:At present, there are three main ways to upgrade the existing system:

1、增加新的接口:在原有的系统上直接增加新的接口,这样进行成新的交互接口与原有的命令行两套系统。1. Add a new interface: Add a new interface directly to the original system, so as to form two systems, a new interactive interface and the original command line.

2、通过增加抽象层增加新的交互接口:采用对原有的系统进行重构,在原有的系统基础上,增加新的接口,并对原有的接口进行修改。2. Add a new interactive interface by adding an abstraction layer: Reconstruct the original system, add a new interface on the basis of the original system, and modify the original interface.

3、在原有的系统上上叠加新的交互接口:在原有的命令行的基础上,通过一个转换程序,将新的接口与原有的命令行接口对映起来,即将新的交互接口构建与原有的命令行基础上。3. Superimpose a new interactive interface on the original system: On the basis of the original command line, through a conversion program, the new interface is mapped to the original command line interface, that is, the new interactive interface is constructed and Based on the original command line.

1、增加新的接口1. Add a new interface

如图1所示,通过在原有的底层接口以及数据的基础上完全实现一下新的交互接口,这种方式的优点是不需要对原有的命令行进行梳理,改造。缺点也很明显,需要重新实现相关的业务逻辑,对于一些陈旧的代码,往往会带来稳定性的问题以及巨大的工作量。As shown in Figure 1, by fully implementing a new interactive interface based on the original underlying interface and data, the advantage of this method is that it does not need to sort out and transform the original command line. The disadvantages are also obvious. The relevant business logic needs to be reimplemented. For some old codes, it often brings stability problems and huge workload.

2、通过增加抽象层增加新的交互接口2. Add new interactive interfaces by adding abstraction layers

如图2所示,对现有的系统进行改造,需要同时支持新的交互接口与原有的命令行接口。一般来说,在实现原来的命令行接口的时候,除了使用命令行进行展示之外,还带有较为复杂的逻辑。为了能够实现新的交互接口以及原有的命令行接口对原来的原有的业务逻辑的支持,需要将原有的业务逻辑作为公共的部分抽象出来,共同服务于新的交互啊接口与原有的命令行。所以为了实现系统的升级改造,一般分为两步:As shown in Figure 2, to transform the existing system, it is necessary to support both the new interactive interface and the original command line interface. Generally speaking, when implementing the original command line interface, in addition to using the command line for display, it also has more complex logic. In order to realize the new interactive interface and the original command line interface to support the original original business logic, it is necessary to abstract the original business logic as a public part to jointly serve the new interactive interface and the original business logic. command line. Therefore, in order to realize the upgrading and transformation of the system, it is generally divided into two steps:

(1)对原有的系统进行命令行与业务逻辑的分离,抽象出新的抽象层,使用新的抽象层对原有的命令行进行重新改造;(1) Separate the command line and business logic of the original system, abstract a new abstraction layer, and use the new abstraction layer to re-engineer the original command line;

(2)在新的抽象层上实现新的交互接口(2) Implement a new interactive interface on a new abstraction layer

3、在原有的系统上上叠加新的交互接口3. Superimpose a new interactive interface on the original system

如图3所示,在原有的命令行的基础上构建新的交互接口,需要在新的交互接口与原有的命令行之间增加一个转换层,转换层的主要作用是完成新的交互接口与原有命令行之间的命令转换以及结果转换等。在转换层的实现中,一般采用每个命令行单独处理的方式,也就是需要为每个命令行进行单独的转换。这种方式的主要的工作如下:As shown in Figure 3, to build a new interactive interface on the basis of the original command line, a conversion layer needs to be added between the new interactive interface and the original command line. The main function of the conversion layer is to complete the new interactive interface Command conversion with the original command line and result conversion, etc. In the implementation of the conversion layer, each command line is generally processed separately, that is, a separate conversion needs to be performed for each command line. The main work of this method is as follows:

(1)对原有的命令行进行转换(1) Convert the original command line

(2)构建新的交互接口(2) Build a new interactive interface

目前这三种的实现方式,其主要缺陷如下:The main drawbacks of these three implementations are as follows:

(1)增加新的接口,缺陷如下:(1) Add a new interface, the defects are as follows:

需要对原有的业务逻辑进行熟悉,并且如果原有的业务逻辑复杂,也会带来比较大的工作量。另外由于形成了两套业务逻辑,会导致代码的重复,带来重复性代码的维护问题。需要实现新的接口,带来较大的工作量。You need to be familiar with the original business logic, and if the original business logic is complex, it will bring a relatively large workload. In addition, due to the formation of two sets of business logic, it will lead to duplication of code and maintenance problems of repetitive codes. A new interface needs to be implemented, which brings a larger workload.

(2)通过增加抽象层增加新的交互接口,缺陷如下:(2) By adding an abstraction layer to add a new interactive interface, the defects are as follows:

需要对原有的代码进行改造,抽象出抽象层,带来比较大的工作量。对于原有的命令行系统进行改造,实现新的接口等,也会带来较大的工作量It is necessary to transform the original code and abstract the abstraction layer, which brings a relatively large workload. Renovating the original command line system and implementing new interfaces will also bring a large workload.

(3)在原有的系统上上叠加新的交互接口,缺陷如下:(3) Superimposing a new interactive interface on the original system, the defects are as follows:

单个命令行的映射需要比较大的工作量,新的交互接口的实现也需要比较大的工作量等。The mapping of a single command line requires a relatively large workload, and the implementation of the new interactive interface also requires a relatively large workload.

发明内容SUMMARY OF THE INVENTION

根据本发明实施例,提供了一种使用命令行的范式对已有命令行进行升级改造的方法,包含如下步骤:According to an embodiment of the present invention, a method for upgrading an existing command line using a command line paradigm is provided, including the following steps:

对现有的命令行根据命令行范式生成若干命令行范式描述;Generate several command line paradigm descriptions for existing command lines according to the command line paradigm;

获取命令行无关的程序,在命令行无关的程序中输入命令行范式描述,生成新的命令行;Obtain the command-line-independent program, enter the command-line paradigm description in the command-line-independent program, and generate a new command line;

在新的命令行的程序启动时,获取所有命令行范式描述的数据;When the new command line program starts, get all the data described by the command line paradigm;

新的命令行的程序对命令行范式描述的数据进行分析,创建一个范式描述数据库;The new command line program analyzes the data described by the command line paradigm and creates a paradigm description database;

当用户输入数据后,命令行范式描述的数据对用户输入数据进行命令行组合,获得组合的命令行;When the user inputs data, the data described in the command line paradigm performs command line combination on the user input data to obtain the combined command line;

将组合的命令行发送至现有的命令行的程序执行相应的命令,若执行成功,则返回执行结果,若执行失败,则输出失败的结果。The program that sends the combined command line to the existing command line executes the corresponding command. If the execution is successful, the execution result is returned, and if the execution fails, the failure result is output.

进一步,命令行范式描述的数据可以保存在静态的文件中或者通过其他的接口进行实时的获取。Further, the data described in the command line paradigm can be saved in static files or acquired in real time through other interfaces.

进一步,当用于输入数据后,新的命令行的程序可根据用户输入数据实时的查询命令行范式描述的数据进行功能升级。Further, after being used to input data, the program of the new command line can query the data described in the command line paradigm in real time according to the input data of the user to perform function upgrade.

进一步,功能升级包含:记性高亮、补全以及模糊匹配。Further, feature upgrades include: memory highlighting, completion, and fuzzy matching.

进一步,对于返回的执行结果,新的命令行的程序可根据自身需求进行结果修改。Further, for the returned execution result, the program of the new command line can modify the result according to its own needs.

根据本发明实施例的使用命令行的范式对已有命令行进行升级改造的方法,具备如下有益效果:The method for upgrading and transforming an existing command line by using a command line paradigm according to an embodiment of the present invention has the following beneficial effects:

1、不需要对现有的命令行系统做修改,可以直接在现有的系统上运用本发明,实现对现有的命令行系统的升级改造,有效控制工作量。1. There is no need to modify the existing command line system, and the present invention can be directly applied to the existing system to realize the upgrading and transformation of the existing command line system and effectively control the workload.

2、不需要对现有的命令行系统进行逐个处理,而是通过一个总的命令行范式进行规范,然后新的程序只需要对命令行范式的描述数据根据命令行范式进行处理即可,从而减小工作量,保证处理的正确性。2. There is no need to process the existing command-line systems one by one, but to standardize through a general command-line paradigm, and then the new program only needs to process the description data of the command-line paradigm according to the command-line paradigm, thus Reduce workload and ensure the correctness of processing.

要理解的是,前面的一般描述和下面的详细描述两者都是示例性的,并 且意图在于提供要求保护的技术的进一步说明。It is to be understood that both the foregoing general description and the following detailed description are exemplary and are intended to provide further explanation of the claimed technology.

附图说明Description of drawings

图1为现有技术中增加新的接口的结构原理图。FIG. 1 is a schematic structural diagram of adding a new interface in the prior art.

图2为现有技术中通过增加抽象层增加新的交互接口的结构原理图。FIG. 2 is a schematic structural diagram of adding a new interactive interface by adding an abstraction layer in the prior art.

图3为现有技术中在原有的系统上上叠加新的交互接口的结构原理图。FIG. 3 is a schematic structural diagram of superimposing a new interactive interface on the original system in the prior art.

图4为根据本发明实施例使用命令行的范式对已有命令行进行升级改造的方法的流程图。FIG. 4 is a flowchart of a method for upgrading an existing command line by using a command line paradigm according to an embodiment of the present invention.

图5为根据本发明实施例使用命令行的范式对已有命令行进行升级改造的方法的主要工作流程结构图。FIG. 5 is a main workflow structure diagram of a method for upgrading an existing command line by using a command line paradigm according to an embodiment of the present invention.

图6为根据本发明实施例使用命令行的范式对已有命令行进行升级改造的方法的具体工作流程结构图。FIG. 6 is a specific workflow structure diagram of a method for upgrading an existing command line by using a command line paradigm according to an embodiment of the present invention.

具体实施方式Detailed ways

以下将结合附图,详细描述本发明的优选实施例,对本发明做进一步阐述。The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings to further illustrate the present invention.

首先,将结合图4~6描述根据本发明实施例的使用命令行的范式对已有命令行进行升级改造的方法,用于对现有的人机交互系统进行升降改造,其应用场景很广。First, a method for upgrading and transforming an existing command line using a command line paradigm according to an embodiment of the present invention will be described with reference to FIGS. 4 to 6 , which is used to lift and transform an existing human-computer interaction system, and has a wide range of application scenarios. .

如图4~6所示,本发明实施例的使用命令行的范式对已有命令行进行升级改造的方法,包含如下步骤:As shown in FIGS. 4 to 6 , the method for upgrading and transforming an existing command line by using a command line paradigm according to an embodiment of the present invention includes the following steps:

在S1中,如图4所示,对现有的命令行根据命令行范式生成若干命令行范式描述。在本实施例中,举例来说,例如一个系统中存在一个命令行,需要清除一些统计数据,这个范式就可以写成:stat clear srv cnt-id=<UINT>,在这个描述中通过本发明所提出的范式进行描述。In S1, as shown in Fig. 4, several command line paradigm descriptions are generated for the existing command line according to the command line paradigm. In this embodiment, for example, if there is a command line in a system, and some statistical data needs to be cleared, this paradigm can be written as: stat clear srv cnt-id=<UINT>, in this description, through the method of the present invention The proposed paradigm is described.

在S2中,如图4所示,获取命令行无关的程序,在命令行无关的程序中输入命令行范式描述,生成新的命令行。在本实施例中,命令行无关的程序,指支持解析具体命令行范式的程序,仅仅与命令行的范式相关,而与命令行的具体描述没有关系。在新的命令行中,用户可以注入新的功能,例如,语法高亮,自动补全等功能。In S2, as shown in Figure 4, a command-line-independent program is obtained, and a command-line paradigm description is entered in the command-line-independent program to generate a new command line. In this embodiment, a command-line-independent program refers to a program that supports parsing a specific command-line paradigm, and is only related to the command-line paradigm, but has nothing to do with the specific description of the command-line. In the new command line, users can inject new features such as syntax highlighting, auto-completion, etc.

在S3中,如图4所示,在新的命令行的程序启动时,获取所有命令行范式描述的数据。进一步,在本实施例中,命令行范式描述的数据可以保存在静态的文件中或者通过其他的接口进行实时的获取。In S3, as shown in Figure 4, when a new command line program is started, all data described in the command line paradigm is obtained. Further, in this embodiment, the data described in the command line paradigm may be stored in a static file or acquired in real time through other interfaces.

在S4中,如图4所示,新的命令行的程序对命令行范式描述的数据进行分析,创建一个范式描述数据库。In S4, as shown in Figure 4, the new command line program analyzes the data described by the command line paradigm, and creates a paradigm description database.

在S5中,如图4所示,当用户输入数据后,命令行范式描述的数据对用户输入数据进行命令行组合,获得组合的命令行。进一步,在本实施例中,当用于输入数据到命令行无关的程序后,新的命令行的程序可根据用户输入数据实时的查询命令行范式描述的数据进行功能升级。功能升级包含:记性高亮、补全以及模糊匹配。In S5 , as shown in FIG. 4 , after the user inputs data, the data described in the command line paradigm performs command line combination on the user input data to obtain a combined command line. Further, in this embodiment, after being used for inputting data to a program unrelated to the command line, the program of the new command line can perform function upgrade by querying the data described in the command line paradigm in real time according to the user input data. Feature upgrades include: memory highlighting, completion, and fuzzy matching.

在S6中,如图4所示,将组合的命令行发送至现有的命令行的程序执行相应的命令,若执行成功,则返回执行结果,若执行失败,则输出失败的结果。进一步,本实施例中,对于返回的执行结果,新的命令行的程序可根据自身需求进行结果修改。In S6, as shown in FIG. 4, the program that sends the combined command line to the existing command line executes the corresponding command, if the execution is successful, the execution result is returned, and if the execution fails, the failure result is output. Further, in this embodiment, for the returned execution result, the program of the new command line can modify the result according to its own needs.

命令行范式支持的功能如下:The command-line paradigm supports the following functions:

支持参数的可选功能,在命令行的实现中,某些参数时可选的,在该发明所提出的命令行范式中可以通过中括号([])进行描述。例如,在命令行描述“l3 show router-mac[unit=<UINT>][idx=<UINT> ]”中,unit=<UINT>与idx=<UINT>是可选的。The optional function of parameters is supported. In the implementation of the command line, some parameters are optional, and can be described by square brackets ([]) in the command line paradigm proposed by the invention. For example, in the command line description "l3 show router-mac[unit=<UINT>][idx=<UINT> ]", unit=<UINT> and idx=<UINT> are optional.

支持选择功能,选择功能的意思是从多个选择中选择一个参数。在命令行范式中可以通过花括号({|})进行描述。例如在命令行描述”pkt set monitor [unit=<UINT>]{disable | enable }”中,最后一个参数,disable与enable是可选的。Support selection function, selection function means to select a parameter from multiple selections. It can be described by curly braces ({|}) in the command line paradigm. For example, in the command line description "pkt set monitor [unit=<UINT>]{disable | enable }", the last parameter, disable and enable, are optional.

支持赋值功能,意思是可以对参数进行复制。在命令行范式中可以通过花括号(=)进行描述。例如在命令行描述”pkt set monitor [ unit=<UINT> ] { disable | enable}”中,unit=<UINT>,unit是可以赋值的,参数时UINT类型。The assignment function is supported, which means that parameters can be copied. It can be described by curly braces (=) in the command line paradigm. For example, in the command line description "pkt set monitor [ unit=<UINT> ] { disable | enable}", unit=<UINT>, unit can be assigned, and the parameter is UINT type.

支持重复功能,意思是可以对参数进行重复使用。在命令行范式中可以通过花括号(+)进行描述。例如在命令行描述” pkt set monitor acl add entry pkg-key[unit=<UINT>][data=<HEX>[mask=<HEX>]]+”中,[mask=<HEX>]]是可以重复的。The repeat function is supported, which means that parameters can be reused. It can be described by curly braces (+) in the command line paradigm. For example, in the command line description "pkt set monitor acl add entry pkg-key[unit=<UINT>][data=<HEX>[mask=<HEX>]]+", [mask=<HEX>]] is OK Repeated.

支持上述功能的组合。Combinations of the above features are supported.

以上,参照图4~6描述了根据本发明实施例的使用命令行的范式对已有命令行进行升级改造的方法,具备如下有益效果:The above, with reference to FIGS. 4 to 6 , the method for upgrading and transforming an existing command line by using a command line paradigm according to an embodiment of the present invention has been described, which has the following beneficial effects:

1、不需要对现有的命令行系统做修改,可以直接在现有的系统上运用本发明,实现对现有的命令行系统的升级改造,有效控制工作量。1. There is no need to modify the existing command line system, and the present invention can be directly applied to the existing system to realize the upgrading and transformation of the existing command line system and effectively control the workload.

2、不需要对现有的命令行系统进行逐个处理,而是通过一个总的命令行范式进行规范,然后新的程序只需要对命令行范式的描述数据根据命令行范式进行处理即可,从而减小工作量,保证处理的正确性。2. There is no need to process the existing command-line systems one by one, but to standardize through a general command-line paradigm, and then the new program only needs to process the description data of the command-line paradigm according to the command-line paradigm, thus Reduce workload and ensure the correctness of processing.

需要说明的是,在本说明书中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包含……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this specification, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements , but also other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprises..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element.

尽管本发明的内容已经通过上述优选实施例作了详细介绍,但应当认识到上述的描述不应被认为是对本发明的限制。在本领域技术人员阅读了上述内容后,对于本发明的多种修改和替代都将是显而易见的。因此,本发明的保护范围应由所附的权利要求来限定。While the content of the present invention has been described in detail by way of the above preferred embodiments, it should be appreciated that the above description should not be construed as limiting the present invention. Various modifications and alternatives to the present invention will be apparent to those skilled in the art upon reading the foregoing. Accordingly, the scope of protection of the present invention should be defined by the appended claims.

Claims (5)

1.一种使用命令行的范式对已有命令行进行升级改造的方法,其特征在于,包含如下步骤:1. a method using the paradigm of command line to upgrade existing command line, is characterized in that, comprises the following steps: 对现有的命令行根据命令行范式生成若干命令行范式描述;Generate several command-line paradigm descriptions for existing command lines according to the command-line paradigm; 获取命令行无关的程序,在所述命令行无关的程序中输入所述命令行范式描述,生成新的命令行;Obtain a command-line-independent program, enter the command-line paradigm description in the command-line-independent program, and generate a new command line; 在所述新的命令行的程序启动时,获取所有所述命令行范式描述的数据;When the program of the new command line is started, obtain all the data described by the command line paradigm; 所述新的命令行的程序对所述命令行范式描述的数据进行分析,创建一个范式描述数据库;The program of the new command line analyzes the data described by the command line paradigm, and creates a paradigm description database; 当用户输入数据后,所述命令行范式描述的数据对所述用户输入数据进行命令行组合,获得组合的命令行;After the user inputs data, the data described in the command line paradigm performs command line combination on the user input data to obtain a combined command line; 将所述组合的命令行发送至现有的命令行的程序执行相应的命令,若执行成功,则返回执行结果,若执行失败,则输出失败的结果。The program that sends the combined command line to the existing command line executes the corresponding command, and returns the execution result if the execution is successful, and outputs the failure result if the execution fails. 2.如权利要求1所述使用命令行的范式对已有命令行进行升级改造的方法,其特征在于,所述命令行范式描述的数据可以保存在静态的文件中或者通过其他的接口进行实时的获取。2. the method that uses the paradigm of command line as claimed in claim 1 to carry out upgrading and transformation to existing command line, it is characterised in that the data described in the command line paradigm can be stored in a static file or carry out real-time through other interfaces acquisition. 3.如权利要求1所述使用命令行的范式对已有命令行进行升级改造的方法,其特征在于,当所述用于输入数据后,所述新的命令行的程序可根据所述用户输入数据实时的查询所述命令行范式描述的数据进行功能升级。3. The method for upgrading an existing command line using the paradigm of the command line as claimed in claim 1, characterized in that, after the data input is used, the program of the new command line can be modified according to the user The input data can query the data described in the command line paradigm in real time to upgrade the function. 4.如权利要求3所述使用命令行的范式对已有命令行进行升级改造的方法,其特征在于,所述功能升级包含:记性高亮、补全以及模糊匹配。4 . The method for upgrading an existing command line using a command line paradigm according to claim 3 , wherein the function upgrade comprises: memory highlighting, completion, and fuzzy matching. 5 . 5.如权利要求1所述使用命令行的范式对已有命令行进行升级改造的方法,其特征在于,对于返回的所述执行结果,所述新的命令行的程序可根据自身需求进行结果修改。5. The method of using the paradigm of command line to upgrade existing command line as claimed in claim 1, it is characterized in that, for the described execution result returned, the program of the new command line can carry out the result according to its own needs Revise.
CN202210413995.9A 2022-04-20 2022-04-20 Method for upgrading and transforming existing command line by using command line paradigm Pending CN114840192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210413995.9A CN114840192A (en) 2022-04-20 2022-04-20 Method for upgrading and transforming existing command line by using command line paradigm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210413995.9A CN114840192A (en) 2022-04-20 2022-04-20 Method for upgrading and transforming existing command line by using command line paradigm

Publications (1)

Publication Number Publication Date
CN114840192A true CN114840192A (en) 2022-08-02

Family

ID=82566337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210413995.9A Pending CN114840192A (en) 2022-04-20 2022-04-20 Method for upgrading and transforming existing command line by using command line paradigm

Country Status (1)

Country Link
CN (1) CN114840192A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Universal command line input device and method based on human-computer interaction language
US20070016869A1 (en) * 2001-10-02 2007-01-18 Anil Mukundan Method, apparatus, and system for managing commands in a client server environment
CN101944023A (en) * 2010-09-14 2011-01-12 南京联创科技集团股份有限公司 Implement method of universal command line interface of UNIX server software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070016869A1 (en) * 2001-10-02 2007-01-18 Anil Mukundan Method, apparatus, and system for managing commands in a client server environment
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Universal command line input device and method based on human-computer interaction language
CN101944023A (en) * 2010-09-14 2011-01-12 南京联创科技集团股份有限公司 Implement method of universal command line interface of UNIX server software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐立锋, 芦东昕, 缪敬: "一种高端数据产品命令行接口的设计", 计算机工程, no. 22, 20 November 2003 (2003-11-20) *
赵静静: "基于ORACLE数据库的多媒体数据操作兼容型DML研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 1, 15 January 2012 (2012-01-15), pages 138 - 355 *

Similar Documents

Publication Publication Date Title
US9519663B2 (en) Upgrading and migrating a database by a migration tool
CN111522543A (en) Visual application component arrangement method and system
WO2012034440A1 (en) Method and device for generating database upgrading script
CN108418704A (en) A network access method for network element equipment based on automatic template configuration
CN101383871A (en) Network element configuration implementing method and apparatus
CN103164206A (en) Software customization system based on software as a service (SAAS)
CN111026670B (en) Test case generation method, test case generation device and storage medium
CN109116828B (en) Method and device for configuring model codes in controller
CN112083926A (en) Web user interface generation method and device
CN111026451A (en) Parameter configuration method and configuration tool for transformer substation terminal interval
CN114168117A (en) A designer-based low-code development tool and storage device for Xinchuang
WO2023208132A1 (en) Api conversion system and access request processing method therefor, and electronic device and medium
WO2009127476A2 (en) A method and a system for transforming an object model
WO2011131101A1 (en) Data cut-over method and apparatus
CN102314495A (en) Method for maintaining database object
CN114840192A (en) Method for upgrading and transforming existing command line by using command line paradigm
CN110377298B (en) Distributed cluster upgrading method and distributed cluster
US11442758B2 (en) Integration flow execution renew
CN112330202B (en) Control intention work order processing method based on arrangement control flow service fulfillment
CN106990974A (en) A kind of APP applications update method, device and electronic equipment
CN117742689A (en) Screen configuration method, device, system, electronic device and storage medium
CN112367205B (en) Processing method and scheduling system for HTTP scheduling request
CN113157351B (en) A method for constructing a voice plug-in for quick invocation of table tools
WO2012083631A1 (en) Method for managing device parameters of radio frequency identification (rfid) system and rfid system
JP2010134574A (en) Method of changing business process definition, execution system thereof and program

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
CB02 Change of applicant information

Country or region after: China

Address after: 3 / F, 665 Zhangjiang Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Yunhe Zhiwang (Shanghai) Technology Co.,Ltd.

Address before: 311203 floor 12, building 2, Purple Orange International Center, No. 39, Jincheng Road, Xiaoshan District, Hangzhou, Zhejiang Province

Applicant before: Hangzhou yunhezhi Network Technology Co.,Ltd.

Country or region before: China

CB02 Change of applicant information