Terminal programming tool, control method, equipment, medium and product

By integrating AI Q&A assistant, history association, cache synchronization and software control functional modules in terminal programming tools, the problem of single functions of existing tools is solved, versatile and extensive application scenarios are achieved, and the efficiency of the tool is improved and applicability.

CN119440504AActive Publication Date: 2025-02-14GUANGZHOU YUNBIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202411488296.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-14
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

The existing terminal programming tools have a single function and are only suitable for development scenarios and cannot meet users' needs for multi-functional and multi-application scenarios.

Method used

It provides a terminal programming tool that integrates AI Q&A assistant function module, history record association function module, cache synchronization function module and software control function module. Through these modules, it realizes multiple functions and is suitable for development and office scenarios.

Benefits of technology

It realizes the versatility of terminal programming tools, can meet the various needs of users in development and office scenarios, and improves the application breadth and efficiency of the tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440504A_ABST
    Figure CN119440504A_ABST
Patent Text Reader

Abstract

The invention provides a terminal programming tool, a control method, equipment, a medium and a product, and belongs to the technical field of computers, the terminal programming tool comprises one or more of an AI question and answer assistant function module, a historical record association function module, a cache synchronization function module and a software control function module, the AI question and answer assistant function module comprises an AI question and answer assistant trained on a preset development platform, and the AI question and answer assistant is used for responding to an instruction sent by a user for entering an AI question and answer mode and judging whether the AI question and answer assistant is started or not according to browser cache data; the feedback module is further used for responding to characters input by the user in the AI question and answer mode and feeding back commands and command courses corresponding to the characters to the user; and the association module is also used for carrying out association combination on the preset command and the Linux command. By arranging the AI question and answer assistant function module, the historical record association function module, the cache synchronization function module and the software control function module, multiple functions can be achieved, and the system is applied to development and office scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a terminal programming tool, a control method, a device, a medium and a product. Background Art

[0002] Programming development refers to the process by which developers use programming languages ​​and related tools to create software applications, websites, systems or other computer programs. Terminal programming tools are tools used by developers in the programming development process. Existing terminal programming tools usually have single functions and can only be applied to development scenarios, and cannot meet users' needs for multi-function and multi-application scenarios. Summary of the invention

[0003] The present invention provides a terminal programming tool, a control method, a device, a medium and a product, which are used to solve the defects that the existing terminal programming tools usually have a single function, can only be applied to development scenarios, and cannot meet the needs of users for multi-function and multi-application scenarios.

[0004] In a first aspect, the present invention provides a terminal programming tool, including one or more of an AI question-and-answer assistant function module, a history record association function module, a cache synchronization function module, and a software control function module;

[0005] The AI ​​question-and-answer assistant functional module includes an AI question-and-answer assistant trained on a preset development platform, and the AI ​​question-and-answer assistant is used to respond to a user's instruction to enter an AI question-and-answer mode, and determine whether to start the AI ​​question-and-answer assistant according to the browser cache data; it is also used to respond to a character input by a user in the AI ​​question-and-answer mode, and to provide the user with feedback on the character corresponding command and command tutorial; it is also used to associate and combine preset commands with Linux commands to form one or more of shell script instructions, file operation instructions, file content viewing instructions, system management instructions, network management instructions, process control instructions, system security instructions, software installation instructions, user management instructions, system monitoring instructions, and system service instructions;

[0006] The history record association function module is used to monitor user operations, and when the user operations meet the preset association events, the association content corresponding to the user operations is selected from the user's command line history records and fed back to the user;

[0007] The cache synchronization function module is used to cache the tabs opened before closing the terminal programming tool and / or the input records of the tabs when the user closes the terminal programming tool, and to display the tabs and / or the input records of the tabs when the user opens the terminal programming tool again;

[0008] The software control function module is used to create a SIDE project or preset software based on a first preset command and implement the front-end and back-end functions of the SIDE project or preset software; and control the preset software in the window of the terminal programming tool based on a second preset command.

[0009] According to a terminal programming tool provided by the present invention, the software control function module creates a SIDE project or preset software based on a first preset command, including:

[0010] Determine whether the CDS environment under the user name is normal. If it is normal, go directly to the next step. Otherwise, check the environment variables using the env|grepCDS command and configure the CDS environment based on the checked environment variables.

[0011] In response to a creation command input by a user in the window of the terminal programming tool, the SIDE project or preset software is created according to the parameters in the creation command, wherein the parameters in the creation command include project path, project category, project description, project version number and project properties.

[0012] According to a terminal programming tool provided by the present invention, the software control function module implements the front-end and back-end functions of the SIDE project or preset software, including:

[0013] The front-end function and the back-end function of the SIDE project or the preset software are realized based on an LSP client and several LSP servers.

[0014] According to a terminal programming tool provided by the present invention, the software control function module controls the preset software in the window of the terminal programming tool based on the second preset command, including:

[0015] In response to a run instruction input by a user in the window of the terminal programming tool, the software corresponding to the software version parameter is run according to the software version parameter in the run instruction and the software icon corresponding to the software version parameter is controlled on the desktop of the development machine.

[0016] A terminal programming tool provided according to the present invention further includes a basic function module, and the basic function module is used to realize a preset desktop function, a preset window function, a preset search and installation function and a preset basic function.

[0017] According to a terminal programming tool provided by the present invention, the terminal programming tool is also used to perform command operations on multiple cloud hosts and local hosts, obtain the back-end task processing results corresponding to the multiple cloud hosts and local hosts and feed them back to the window of the terminal programming tool to realize the connection between the front-end display interface and the back-end tasks.

[0018] In a second aspect, the present invention further provides a terminal programming tool control method for controlling the terminal programming tool, the method comprising:

[0019] Based on a preset control scheme, the terminal programming tool is controlled to implement one or more of an AI question-and-answer assistant function module, a history association function module, a cache synchronization function module, and a software control function module.

[0020] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the terminal programming tool control methods described above are implemented.

[0021] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the terminal programming tool control methods described above.

[0022] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the terminal programming tool control methods described above.

[0023] The present invention provides a terminal programming tool, control method, device, medium and product, which can realize multiple functions by setting an AI question-and-answer assistant function module, a history record association function module, a cache synchronization function module and a software control function module, and is applied to development and office scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 It is a structural schematic diagram of the terminal programming tool provided by the present invention;

[0026] Figure 2 It is a flowchart of opening the AI ​​question-answering assistant provided by the present invention;

[0027] Figure 3a This is one of the functional schematic diagrams of the AI ​​question-answering assistant provided by the present invention. Figure 3b This is the second functional schematic diagram of the AI ​​question-answering assistant provided by the present invention;

[0028] Figure 4It is a schematic diagram of implementing the front-end and back-end functions of the SIDE project provided by the present invention;

[0029] Figure 5 It is a flow chart of the terminal programming tool control method provided by the present invention;

[0030] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] It should be noted that in the description of the present invention, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0033] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0034] All actions of acquiring signals, information or data in the present invention are performed in compliance with the corresponding data protection laws and policies of the country of location and with the authorization given by the owner of the corresponding device.

[0035] Combine the following Figure 1-Figure 6 The present invention describes a terminal programming tool, a control method, a device, a medium and a product.

[0036] Figure 1 It is a schematic diagram of the structure of a terminal programming tool provided by the present invention. Figure 1 As shown, the present invention provides a terminal programming tool, including one or more of an AI question-and-answer assistant function module, a history record association function module, a cache synchronization function module, and a software control function module.

[0037] The AI ​​question-and-answer assistant functional module includes an AI question-and-answer assistant trained on a preset development platform, and the AI ​​question-and-answer assistant is used to respond to a user's instruction to enter an AI question-and-answer mode, and determine whether to start the AI ​​question-and-answer assistant according to the browser cache data; it is also used to respond to a character input by a user in the AI ​​question-and-answer mode, and to provide the user with feedback on the character corresponding command and command tutorial; it is also used to associate and combine preset commands with Linux commands to form one or more of shell script instructions, file operation instructions, file content viewing instructions, system management instructions, network management instructions, process control instructions, system security instructions, software installation instructions, user management instructions, system monitoring instructions, and system service instructions;

[0038] Optionally, the preset development platform refers to the Codigger platform. The AI ​​question-answering assistant of the present invention is fully integrated with the Codigger platform and can be automatically integrated by simply installing it in the Codigger platform. The AI ​​question-answering assistant provided by the present invention has the rose command support function and also supports the display of command icons and command tutorials.

[0039] Figure 2It is a flow chart of opening the AI ​​question and answer assistant provided by the present invention. In an embodiment of the present invention, when the AI ​​question and answer assistant is in a closed state, upon receiving an opening instruction from the user, the browser cache data is queried to determine whether the browser has enabled the AI ​​question and answer assistant. If so, it is opened. If not, it is checked whether the current workstation has the AI ​​question and answer assistant. If not, follow the prompt to install it. After following the prompt, it can be turned on and the enabled state can be saved in the browser cache data so that it can be opened directly next time.

[0040] Figure 3a This is one of the functional schematic diagrams of the AI ​​question-answering assistant provided by the present invention. Figure 3b This is the second functional schematic diagram of the AI ​​question-answering assistant provided by the present invention. Figure 3a and Figure 3b As shown, the AI ​​question-answering assistant provided in real time by the present invention supports displaying rose command icons and command tutorials, supports Lenovo's commonly used linux commands, and forms a variety of combinations with rose commands.

[0041] The AI ​​question-answering assistant provided by the present invention has an independent interface. After entering the independent interface of the AI ​​question-answering assistant, the developer machine properties are modified based on the first preset function and the second preset function, so as to perform separate operations on the characters input by the user in the independent interface. For example, after the user inputs the character rose 1, all commands starting with rose 1 are automatically matched. If there is only one command starting with rose 1, the AI ​​question-answering assistant automatically completes the following characters. The first preset function is used to modify the flag control item in the developer machine properties, and the second preset function is used to modify the control character item in the developer machine properties.

[0042] Optionally, the AI ​​question-answering assistant provided by the embodiment of the present invention may also adopt the asynchronous IO concept to analyze the characters input by the user so as to reduce the resource usage of the development machine.

[0043] The history record association function module is used to monitor user operations, and when the user operations meet preset association events, the association content corresponding to the user operations is selected from the user's command line history records and fed back to the user.

[0044] The terminal programming tool records the command lines successfully executed by the user, and combines all the successfully executed command lines to obtain a command line history record. The command line history records of each user are independent of each other.

[0045] Monitor user operations, and when the user operations meet preset association events, select association content corresponding to the user operations from the user's command line history and feedback to the user, specifically including monitoring the user's input events in the terminal programming tool window, and if the association function is triggered when the user inputs a predetermined text, select association content corresponding to the text input by the user from the user's command line history and feedback to the user. The user can operate the association content based on the keyboard, such as selecting the association content with the up and down keys on the keyboard, completing the association content with the Tab key on the keyboard, completing and executing the association content with the Enter key on the keyboard, etc.

[0046] The cache synchronization function module is used to cache the tabs opened before closing the terminal programming tool and / or the input records of the tabs when the user closes the terminal programming tool, and to display the tabs and / or the input records of the tabs when the user opens the terminal programming tool again.

[0047] Optionally, when the user closes the terminal programming tool, the input record of the current label is saved, and when the user opens the terminal again, the cached content is immediately displayed, and the cached content is compared synchronously. If the comparison results are different, the displayed content is updated.

[0048] Optionally, when the user closes the terminal programming tool, the opened tabs are saved, the terminal is reopened to pull the browser cache and display it, and the tab selected when it was last closed is selected.

[0049] In other embodiments, the cache synchronization function module can also be used to set an upper limit constraint for saved tabs, limiting the upper limit of tab opening to 20, and prompting when the upper limit is reached. When the development machine is unavailable, the corresponding tab will no longer be opened, but a prompt will be given.

[0050] The software control function module is used to create a SIDE project or preset software based on a first preset command and implement the front-end and back-end functions of the SIDE project or preset software; and control the preset software in the window of the terminal programming tool based on a second preset command.

[0051] It can be understood that the present invention can realize multiple functions and be applied to development and office scenarios by setting up an AI question and answer assistant function module, a history record association function module, a cache synchronization function module and a software control function module.

[0052] Based on the above embodiment, as an optional embodiment, the first preset command includes the env|grepCDS command, the create command, etc., and the software control function module creates the SIDE project or preset software based on the first preset command, including:

[0053] Determine whether the CDS environment under the user name is normal. If it is normal, go to the next step directly. Otherwise, check the environment variables based on the env|grepCDS command and configure the CDS environment based on the checked environment variables. Among them, CDS (Core Data Services) is a new infrastructure in SAP HANA, which is used to define and use semantically rich data models. It is implemented through data definition language (DDL), query language (QL) and expression language (EL), and supports functions such as writing operations, transaction semantics, and constraints.

[0054] During the specific implementation process, when you open the terminal programming tool to create a SIDE project or preset software, the CDS environment under the default specified user name is normal and no additional configuration is required. The SIDE project (SAP Integration and Development Environment) is an integration and development environment provided by SAP, which aims to help developers and enterprise users build, integrate and manage SAP applications and services more efficiently.

[0055] If an error occurs in the CDS environment of the SIDE project, you can use the env|grep CDS command to check whether the environment variables are configured. If not, use the preset command to add the environment variables. The preset command can be export CDS_USER=test01, export CDS_HOME=$CDS_ROOT / user / test01, where test01 is a custom name.

[0056] In response to a creation command input by a user in the window of the terminal programming tool, the SIDE project or preset software is created according to the parameters in the creation command, wherein the parameters in the creation command include project path, project category, project description, project version number and project properties.

[0057] The creation command refers to the rose create command. In the window of the terminal programming tool, execute rosecreate app-username-modulename to create a SIDE project or preset software. When the rose create command is executed, rose bind raw-onecloud-module-factory will be automatically executed. After the command is successfully executed, the newly created project will appear in SIDE in real time. If an error occurs during the creation process, the terminal will feedback the error prompt in real time.

[0058] The parameters project path, project category, project description, project version number, and project properties in the rose create command are as follows:

[0059] -p (path): specifies the path and creates it under the current path without the need to enter an additional path;

[0060] -c (class): main class;

[0061] -d (description): module description information;

[0062] -v (version): module version number;

[0063] -w (web): create a pure front-end;

[0064] -o(ose): create a pure backend;

[0065] The project properties refer to creating a SIDE project as a pure front-end or a pure back-end.

[0066] It can be understood that the embodiment of the present invention provides a technical solution for creating a SIDE project or preset software, which is simpler to operate and reduces the requirements for developers compared to the existing project creation solutions.

[0067] Figure 4 It is a schematic diagram of implementing the front-end and back-end functions of the SIDE project provided by the present invention, such as Figure 4 As shown, based on the above embodiment, as an optional embodiment, the software control function module implements the front-end and back-end functions of the SIDE project or preset software, including:

[0068] The front-end function and the back-end function of the SIDE project or the preset software are implemented based on an LSP client and several LSP servers. The present invention is described by taking the SIDE project as an example.

[0069] Figure 2 In this article, browser refers to a web browser, which is a software application used to access and display Internet content and implement the front-end functions of the SIDE project based on the LSP client. The LSP client (Language Server Protocol Client) refers to the client application that implements the language server protocol.

[0070] Figure 4In the GitHub Copilot project, workstation is the backend editor, including CopilotAgent Server, which is a backend service for supporting intelligent programming assistants such as GitHub Copilot, including CopilotAgent.js. CopilotAgent.js is a JavaScript library or module for implementing intelligent programming assistants such as GitHub Copilot, and its main function is to provide an interactive interface with the Copilot service.

[0071] The front-end and back-end functions of the SIDE project implemented based on an LSP client and several LSP servers include one or more of the following functions:

[0072] Code completion function: SIDE editors (vim / nvim / monaco) access Copilot code completion and other services through LSP client calls (cooper, vimcall, coc are not involved).

[0073] Forwarding function: jsonRPC calls between LSP clients and LSP servers (including Copilot agent) are transparently forwarded through the gateway; the jsonRPC protocol defines a simple request-response model, and the communicating parties interact by sending and receiving messages in json format.

[0074] Public service function: The LSP server provides public services and does not need to be deployed and managed on each user workstation.

[0075] Backend call function: The call between the LSP server and the backend service (such as Copilot) is implemented by the LSP server itself (usually https, usually the basic language service is completed locally without cloud service), and can be proxied through the gateway due to network requirements.

[0076] Extended functions: Supports different SIDE editor extensions, and can also easily access different language services and syntax highlighting functions through the extended LSP server.

[0077] It can be understood that the embodiment of the present invention realizes the multi-functions of the SIDE project.

[0078] Based on the above embodiment, as an optional embodiment, the second preset command includes a running instruction, and the software control function module controls the preset software in the window of the terminal programming tool based on the second preset command, including:

[0079] In response to a run instruction input by a user in the window of the terminal programming tool, the software corresponding to the software version parameter is run according to the software version parameter in the run instruction and the software icon corresponding to the software version parameter is controlled on the desktop of the development machine.

[0080] The run instruction refers to the Rose Open command. Specifically, execute roseopen app-username-modulename in the terminal programming tool window to run the App.

[0081] The software version parameters include the following three types:

[0082] -i (install): with -i or without, run the official App;

[0083] -d (dev): runs the local development app, the desktop icon has the dev logo, and calls the bridge server capability;

[0084] -e (earlybird): Run the earlybird version of the app.

[0085] Controlling the software icon corresponding to the software version parameter on the desktop of the development machine specifically includes the following contents:

[0086] If rose open is run with the -dev parameter, an icon with the dev subtitle and the App name will be generated on the desktop, which is visible only to the creator.

[0087] If rose open is run with the -earlybird parameter, an earlybird icon and app name will be generated on the desktop, visible to users in the whitelist.

[0088] If the icon has been generated, it will not be generated again;

[0089] The icon has been generated, but it has been modified. Update the icon in real time.

[0090] An icon has been generated. Double-clicking the icon will execute the rose open command.

[0091] If the project is deleted, when you run the App, a pop-up window will appear: "Cannot find the project, do you want to delete the icon?" Click OK to delete the icon.

[0092] In one embodiment, if the App name or parameter does not exist, an error message is displayed.

[0093] It can be understood that the embodiment of the present invention provides a specific solution for controlling the preset software in the window of the terminal programming tool based on the second preset command. By combining the terminal programming tool and the command line function, it is possible to call various forms of software interfaces.

[0094] Based on the above embodiment, as an optional embodiment, it also includes a basic function module, and the basic function module is used to realize the preset desktop function, the preset window function, the preset search and installation function and the preset basic function.

[0095] Optionally, the default desktop functions include the following:

[0096] 1.Desktop exclusive terminal icon;

[0097] 2. Click Start->All Apps->Terminal icon on the taskbar to enter the terminal;

[0098] 3. Find the terminal icon on the desktop and double-click it to run;

[0099] 4. You need to determine whether the development machine is bound. If it is bound, open the terminal window. If not, a box will pop up saying "The development machine is not bound. Go to add it now". Click [OK] to jump to the original bound development machine page.

[0100] 5. Support right-click "open, update, uninstall, remove".

[0101] Optionally, the preset window functions include the following:

[0102] 1. The window supports stretching to change the window size;

[0103] 2. The window supports functions such as "maximize, minimize, close" and so on.

[0104] Optionally, the preset search and installation functions include the following functions:

[0105] 1. Support to search or install this terminal application from the application store.

[0106] Optionally, the preset basic functions include the following:

[0107] 1. Menu bar "File, View, Settings, Help";

[0108] --1.1. Click "File" to switch the bound development machine, and click the development machine to open the new development machine window;

[0109] --1.2. Click "View" to open the full screen and hidden function menu;

[0110] --1.3. Click "Settings" to configure the shell;

[0111] --1.4. Click "Help" to view the terminal usage introduction;

[0112] 2. Support copy and paste function;

[0113] 3. Support adding multiple tags and closing tags.

[0114] It can be understood that the embodiment of the present invention provides a specific solution for the basic functional modules of the terminal programming tool, thereby enriching the functions of the terminal programming tool.

[0115] Based on the above embodiments, as an optional embodiment, the terminal programming tool is also used to perform command operations on multiple cloud hosts and local hosts, obtain the back-end task processing results corresponding to the multiple cloud hosts and local hosts and feed them back to the window of the terminal programming tool to realize the connection between the front-end display interface and the back-end tasks.

[0116] It can be understood that the embodiments of the present invention can use terminal programming tools in the development machine desktop, which can achieve two-way feedback of quickly connecting the front-end display interface and the back-end task execution. The front-end and the back-end call to complete the processing of system data information that needs to be processed, provide the most suitable results for the user's operation scenario, and reduce the difficulty of users using the desktop and even the platform.

[0117] Based on the above embodiment, as an optional embodiment, the terminal programming tool is also used to implement the function corresponding to the preset shortcut instruction based on the preset shortcut instruction.

[0118] The preset shortcut commands, command examples and their function descriptions are as follows:

[0119] 1. hodo is used to execute commands as a superuser or other privileged user. The corresponding command example is hodorose update raw-onecloud-mudem. Its function description is to provide temporary privileged access, allowing ordinary users to perform operations that require privileges, such as installing software and modifying system configurations, without switching to the superuser (root) identity.

[0120] This command is required when installing or updating modules in the first and second layers (generally those installed in the codigger / sense / directory).

[0121] 2. The option parameters of the rose search command include <module>and [-s], <module>: string, the module name or name fragment to be searched, such as: side; [-s]: specifies the small environment, the default is the large environment.

[0122] An example of the rose search instruction is rose search side-s, and its function description is fuzzy search Module.

[0123] 3. The option parameters of the rose install command include <module>, [-v version] and [-s], <module>: string, multi-segment Module name; [-v version]: string, specify the version number, such as: -v 1.1.0; [-s]: specify the small environment, the default is the large environment.

[0124] An example of the rose install command is rose install app-onecloud-sidev2.3.1-s. Its function description is to install the specified Module, and you can specify the version number to be installed.

[0125] 4. The examples of the rose freeze command are rose freeze>requirement.txt and rose install-rrequirement.txt. The functions of each command are: collect installed module information for migration, >xxx.txt: redirect output to the specified file.

[0126] 5. The option parameters of the rose uninstall command include <module> , <module>: string, multi-segment Module name.

[0127] An example of the rose uninstall command is rose uninstall app-onecloud-side, and its function description is to uninstall the specified Module.

[0128] 6. The option parameters of the rose update command include <module> , <module>: string, multi-segment module name, the default is to update all modules.

[0129] Examples of the rose update command are rose update app-onecloud-side, rose update (update all installed modules), and rose update rose object (update rose itself), and their function description is to update the specified module.

[0130] 7. The option parameters of the rose list command include [-a] and [-o], [-a]: display in tree form, [-o]: list upgradeable modules.

[0131] The rose list command example is rose list-oa, which is used to view the list of modules installed on the current host.

[0132] 8. The option parameters of the rose info command include <module>, [-v version] and [-s], <module>: string, multi-segment Module name; [-v version]: string, specify the version number, such as: -v 1.1.0; [-s]: specify the small environment, the default is the large environment.

[0133] An example of the rose info command is rose info app-onecloud-side-v20.1-s, which describes its function as viewing the online version information and local installation information of the specified Module.

[0134] 9. The option parameters of the rose push command include <module>, [-uusername], [-ppassword] and [-s], <module>: string, multi-segment Module name; [-uusername], string, user name; [-p password], string, password; [-s]: specifies the small environment, the default is the large environment.

[0135] The rose push command example is rose push app-onecloud-side-u chenjc-pabc123-s, which is used to push the module to the Rose repository. The push prerequisites are: 1) Before pushing the application, please confirm whether you have a Rose repository account. If not, you need to register an account on the Objectsense official website. 2) The application to be pushed to the Rose repository must be stored in the $HOME / vim / sense path.

[0136] 10. The option parameters of the rose submit command include <module>, [-v version], [uusername-ppassword] and [-t token], <module>: string, multi-segment Module name; [-v version]: string, specify the version, such as: -v 1.1.0; [-u username-ppassword], string, specify the username and password; [-ttoken], string, user corresponding token (-up is not needed if this item is included).

[0137] Examples of the rose submit command are rose submit app-onecloud-side-v, rose delistapp-onecloud-example-V1.0.0-u, and onecloud-p12345678. Their functions are submitting for review, and using either -u / -p or --token. When token is specified, u / p is not required.

[0138] 11. The option parameters of the rose delist command include <module>, [-v version], [uusername-ppassword] and [-t token], <module>: string, multi-segment Module name; [-v version]: string, specify the version, such as: -v 1.1.0; [-u username-ppassword], string, specify the username and password; [-ttoken], string, user corresponding token (-up is not needed if this item is included).

[0139] Examples of the rose delist command are rose delist ap-onecloud-side-v1.1.0-uoneclou–p, abc123-token Xxxxxxx, which respectively indicate that the specified version of the module can be removed from the shelves through the command line, and that one of -u, -p, and -token can be used.

[0140] 12. The option parameters of the rose test command include [-c 1 / 0], [-r 1 / 0] and [-iinfo], [-c1 / 0]: int, whether to detect coverage (1-detect, 0-do not detect, the default is 0); [-r 1 / 0]: int, whether to recursively detect (1-recursive detection, 0-do not recursively detect, the default is 0); [-iinfo]: string, conditional information, such as loop variables, preloaded log modules, etc.

[0141] The rose test command example is rose test app-testo220example-c 1-r 1, which describes the function of executing the RT test of the module. -i: unit test condition information, such as defining environment variables, preloading the log module, etc. (empty by default).

[0142] 13. The option parameters of the rose pretty command include <module> , <module>:string, multi-segment Module name & specified file path.

[0143] Examples of the rose pretty instruction are rose pretty app-onecloud-side and rose pretty app-onecloud-side / src / .ose. Its function is to beautify the source code of the Module.

[0144] 14. The option parameters of the rose run command include <module>, [-p path] and [-c class], <module>:string, multi-segment Module name; [-p path]:string, specify the class file path, such as: -p / home / clouder; [-c class]:string, specify the class name to run.

[0145] Examples of the rose run command are rose run app-onecloud-side and rose run app-onecloud-side edit xxx.ose (open the file with side). Its function description is to run the specified Module (only valid for ose).

[0146] 15. The option parameters of the rose cod edit command include <filename> , <filename>: string, target file name (including path).

[0147] An example of the command rose cod edit is rose cod edit .. / abc / xxx.ose, and its function description is to open the specified file with SIDE.

[0148] 16. The rose lint command is used to check the Module code.

[0149] 17. The option parameters of the rose edit command include <filename> , <filename>: string, target file name (including path).

[0150] The example of the rose edit instruction is rose editxxx.ose, and its function description is to edit the code file of the Module.

[0151] 18. The rose debug command is used to debug the Module.

[0152] 19. The rose build command is used to build the Module.

[0153] 20. The rose compile command is used to compile the source code of the Module.

[0154] It is understandable that the embodiment of the present invention provides preset shortcut instructions for the terminal programming tool so as to quickly implement the function corresponding to the preset shortcut instruction.

[0155] It should be noted that the execution subject of the terminal programming tool, control method, device, medium and product provided by the present invention can be a server, computer equipment, such as a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic equipment, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), etc.

[0156] The terminal programming tool control method provided by the present invention is described below. The terminal programming tool control method described below and the terminal programming tool described above can be referenced to each other.

[0157] Figure 5 It is a flow chart of the terminal programming tool control method provided by the present invention, such as Figure 5 As shown, the present invention also provides a terminal programming tool control method for controlling the terminal programming tool, the method comprising:

[0158] Step S100, based on a preset control scheme, controls the terminal programming tool to implement one or more of an AI question-and-answer assistant function module, a history record association function module, a cache synchronization function module, and a software control function module.

[0159] The preset control scheme includes responding to a function selection instruction issued by a user, selecting and running a target function module corresponding to the function selection instruction, and when running the corresponding target function module, realizing a corresponding function based on the preset instruction of the target function module.

[0160] It should be noted that the terminal programming tool control method provided by the present invention can control the terminal programming tool described in any of the above embodiments during specific operation and has corresponding technical effects, which will not be elaborated in this embodiment.

[0161] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the terminal programming tool control method, which includes: controlling the terminal programming tool based on a preset control scheme to implement one or more of an AI question-and-answer assistant function module, a history association function module, a cache synchronization function module, a SIDE project function module and a software control function module.

[0162] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0163] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the terminal programming tool control method provided in the above-mentioned embodiments, and the method includes: controlling the terminal programming tool based on a preset control scheme to realize one or more of an AI question and answer assistant function module, a history association function module, a cache synchronization function module, a SIDE project function module, and a software control function module.

[0164] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the terminal programming tool control method provided in the above-mentioned embodiments. The method includes: controlling the terminal programming tool based on a preset control scheme to implement one or more of an AI question and answer assistant function module, a history association function module, a cache synchronization function module, a SIDE project function module and a software control function module.

[0165] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / filename> < / filename> < / filename> < / filename> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module> < / module>

Claims

1. A terminal programming tool, characterized in that: It includes one or more of an AI question-answering assistant function module, a history record association function module, a cache synchronization function module, and a software control function module; The AI ​​question-and-answer assistant functional module includes an AI question-and-answer assistant trained on a preset development platform, and the AI ​​question-and-answer assistant is used to respond to a user's instruction to enter an AI question-and-answer mode, and determine whether to start the AI ​​question-and-answer assistant according to the browser cache data; it is also used to respond to a character input by a user in the AI ​​question-and-answer mode, and to provide the user with feedback on the character corresponding command and command tutorial; it is also used to associate and combine preset commands with Linux commands to form one or more of shell script instructions, file operation instructions, file content viewing instructions, system management instructions, network management instructions, process control instructions, system security instructions, software installation instructions, user management instructions, system monitoring instructions, and system service instructions; The history record association function module is used to monitor user operations, and when the user operations meet the preset association events, the association content corresponding to the user operations is selected from the user's command line history records and fed back to the user; The cache synchronization function module is used to cache the tabs opened before closing the terminal programming tool and / or the input records of the tabs when the user closes the terminal programming tool, and to display the tabs and / or the input records of the tabs when the user opens the terminal programming tool again; The software control function module is used to create a SIDE project or preset software based on a first preset command and implement the front-end and back-end functions of the SIDE project or preset software; and control the preset software in the window of the terminal programming tool based on a second preset command.

2. The terminal programming tool according to claim 1, characterized in that: The software control function module creates a SIDE project or preset software based on the first preset command, including: Determine whether the CDS environment under the user name is normal. If it is normal, go to the next step directly. Otherwise, check the environment variables using the env|grep CDS command and configure the CDS environment based on the checked environment variables. In response to a creation command input by a user in the window of the terminal programming tool, the SIDE project or preset software is created according to the parameters in the creation command, wherein the parameters in the creation command include project path, project category, project description, project version number and project properties.

3. The terminal programming tool according to claim 1 or 2, characterized in that: The software control function module implements the front-end and back-end functions of the SIDE project or preset software, including: The front-end function and the back-end function of the SIDE project or the preset software are realized based on an LSP client and several LSP servers.

4. The terminal programming tool according to claim 1, characterized in that: The software control function module controls the preset software in the window of the terminal programming tool based on the second preset command, including: In response to a run instruction input by a user in the window of the terminal programming tool, the software corresponding to the software version parameter is run according to the software version parameter in the run instruction and the software icon corresponding to the software version parameter is controlled on the desktop of the development machine.

5. The terminal programming tool according to claim 1, characterized in that: It also includes a basic function module, which is used to realize a preset desktop function, a preset window function, a preset search and installation function and a preset basic function.

6. The terminal programming tool according to claim 1, characterized in that: The terminal programming tool is also used to perform command operations on multiple cloud hosts and local hosts, obtain backend task processing results corresponding to multiple cloud hosts and local hosts, and feed them back to the window of the terminal programming tool to realize the connection between the front-end display interface and the back-end tasks.

7. A terminal programming tool control method, characterized in that: Used to control the terminal programming tool according to any one of claims 1 to 6, the method comprising: Based on a preset control scheme, the terminal programming tool is controlled to implement one or more of an AI question-and-answer assistant function module, a history association function module, a cache synchronization function module, and a software control function module.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the terminal programming tool control method as claimed in claim 7 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the terminal programming tool control method as claimed in claim 7 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, the steps of the terminal programming tool control method as claimed in claim 7 are implemented.

Citation Information

Patent Citations

  • Intelligent assistant implementation method and system based on software function

    CN108399216A

  • Web-based Arduino intelligent hardware control method and system

    CN113900637A

  • Intelligent and predictive modules for software development and coding using artificial intelligence and machine learning

    US20240281218A1

Cited By

  • Communication method applied to Codiger system

    CN120567908A