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

By integrating features such as an AI question-and-answer assistant, history prediction, and cache synchronization, the terminal programming tool has solved the problem of limited functionality and achieved multi-functional development and office support.

CN119440504BActive Publication Date: 2025-12-09GUANGZHOU YUNBIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing terminal programming tools have limited functionality and cannot meet the needs of multiple functions and application scenarios.

Method used

A terminal programming tool is provided, which integrates an AI question-and-answer assistant module, a history association module, a cache synchronization module, and a software control module, supporting multiple functions such as AI question-and-answer, history association, cache synchronization, and software control.

Benefits of technology

It enables the multi-functional application of terminal programming tools in development and office scenarios, improving development efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440504B_ABST
    Figure CN119440504B_ABST
Patent Text Reader

Abstract

The application 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 history 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.The AI question and answer assistant is used to determine whether to start the AI question and answer assistant according to browser cache data in response to a user's instruction to enter an AI question and answer mode.The AI question and answer assistant is also used to feed back a command corresponding to a character and a command tutorial to the user in response to the character input by the user in the AI question and answer mode, and to combine a preset command with a Linux command by association.The AI question and answer assistant function module, the history record association function module, the cache synchronization function module and the software control function module can realize multiple functions and be applied to development and office scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and in particular, to a terminal programming tool, a control method, equipment, a medium and a product. BACKGROUND

[0002] Programming development refers to the process in which a developer uses a programming language and related tools to create a software application, website, system or other computer program, and a terminal programming tool is a tool used by the developer in the process of programming development. Existing terminal programming tools are usually single-function and can only be applied to development scenarios, which cannot meet the needs of users for multi-function and multi-application scenarios. SUMMARY

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

[0004] In a first aspect, the present application provides a terminal programming tool, which comprises 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 function module comprises an AI question and answer assistant trained on a preset development platform, which is configured to determine whether to start the AI question and answer assistant according to browser cache data in response to a user instruction to enter an AI question and answer mode, and to feed back a command corresponding to a character input by the user and a command tutorial to the user in response to the character input by the user in the AI question and answer mode, and to combine a preset command with a Linux command to form one or more of a shell script instruction, a file operation instruction, a file content viewing instruction, a system management instruction, a network management instruction, a process control instruction, a system security instruction, a software installation instruction, a user management instruction, a system monitoring instruction and a system service instruction.

[0006] The history record association function module is configured to listen to user operations and, when the user operations meet a preset association event, select association content corresponding to the user operations from a command line history record of the user and feed back the association content to the user.

[0007] The cache synchronization function module is configured to cache a tab page opened before a terminal programming tool is closed and / or input records of the tab page when the terminal programming tool is closed, and to display the tab page and / or the input records of the tab page when the terminal programming tool is opened again.

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

[0009] According to the terminal programming tool, the software control function module creates a SIDE project or preset software based on a first preset command, and includes:

[0010] If the CDS environment under the username is normal, the next step is directly performed, otherwise, the environment variable is checked based on an env|grep CDS command and the CDS environment is configured based on the checked environment variable;

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

[0012] According to the terminal programming tool, the software control function module realizes front-end and back-end functions of the SIDE project or preset software, and includes:

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

[0014] According to the terminal programming tool, the software control function module controls preset software in a window of the terminal programming tool based on a second preset command, and includes:

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

[0016] According to the terminal programming tool, the terminal programming tool further includes a basic function module, and the basic function module is used for realizing preset desktop functions, preset window functions, preset search and installation functions and preset basic functions.

[0017] According to the terminal programming tool, the terminal programming tool is further used for performing command operation on a plurality of cloud host computers and local host computers, obtaining back-end task processing results corresponding to the plurality of cloud host computers and local host computers and feeding back to a window of the terminal programming tool to realize connection of a front-end display interface and a back-end task.

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

[0019] controlling the terminal programming tool based on the preset control scheme 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.

[0020] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the terminal programming tool control method according to any one of the above aspects when executing the program.

[0021] In a fourth aspect, the present application provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the terminal programming tool control method according to any one of the above aspects.

[0022] In a fifth aspect, the present application provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the steps of the terminal programming tool control method according to any one of the above aspects.

[0023] The terminal programming tool, control method, device, medium, and product provided by the present application can implement 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 can be applied to development and office scenarios. BRIEF DESCRIPTION OF DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.

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

[0026] Figure 2 is a flowchart of opening the AI question and answer assistant provided by the present application;

[0027] Figure 3a is one of the function schematic diagrams of the AI question and answer assistant provided by the present application, Figure 3b is another function schematic diagram of the AI question and answer assistant provided by the present application;

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

[0029] Figure 5 is a flow schematic diagram of the terminal programming tool control method provided by the present application;

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

[0031] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0032] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitation, the element defined by the statement "comprising a" does not exclude the presence of another identical element in the process, method, article or device comprising the element. The terms "upper", "lower" and the like indicate the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the present application and simplify the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise specified and limited, the terms "mount", "connect", "connect" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For those of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0033] The terms "first", "second", and the like in the present disclosure 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 application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a class and do not limit the number of objects, 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 before and after are in a "or" relationship.

[0034] All actions of obtaining signals, information or data in the present application are carried out in accordance with the corresponding data protection regulations and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.

[0035] The following will be described in conjunction with Figures 1-6 A terminal programming tool, control method, device, medium and product are provided.

[0036] Figure 1 The present application provides a terminal programming tool structure diagram, as shown in Figure 1 The present application provides a terminal programming tool, which comprises one or more of AI question and answer assistant function module, history record association function module, cache synchronization function module and software control function module.

[0037] The AI question and answer assistant function module comprises an AI question and answer assistant trained on a preset development platform, which is used to determine whether to start the AI question and answer assistant according to browser cache data in response to a user's instruction to enter the AI question and answer mode; and is also used to feed back the corresponding command and command tutorial of the character input by the user in the AI question and answer mode to the user; and is also used to combine a preset command with a Linux command 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, and the AI question and answer assistant of the present application is fully combined with the Codigger platform, and can be automatically combined by installing in the Codigger platform. The AI question and answer assistant provided by the present application has rose command support function, and also supports display of command icon and command tutorial.

[0039] Figure 2is a flowchart of opening an AI question and answer assistant provided by the application, in the embodiment of the application, when the AI question and answer assistant is in a closed state, an opening instruction of a user is received, then browser cache data is queried, whether the AI question and answer assistant is enabled by the browser is judged, if yes, the AI question and answer assistant is opened, if not started, whether the current workstation is according to the AI question and answer assistant is checked, if not installed, the user is prompted to install, after installation, the AI question and answer assistant can be started and the enabled state is saved to the browser cache data so as to directly open next time.

[0040] Figure 3a is one of the function diagrams of the AI question and answer assistant provided by the application, Figure 3b is the second function diagram of the AI question and answer assistant provided by the application, as shown in Figure 3a and Figure 3b The AI question and answer assistant provided by the application supports displaying rose command icons and command tutorials, supports associating with commonly used linux commands, and forms various combinations with rose commands.

[0041] The AI question and answer assistant provided by the application has an independent interface, after entering the independent interface of the AI question and answer assistant, the development machine attribute is modified based on the first preset function and the second preset function, so as to separately operate the character input by the user in the independent interface, for example, after the user inputs the character rose l, all commands starting with rose l are automatically matched, if there is only one command starting with rose l, the AI question and answer assistant automatically completes the following characters. The first preset function is used to modify the flag control item in the development machine attribute, and the second preset function is used to modify the control character item in the development machine attribute.

[0042] Optionally, the AI question and answer assistant provided by the embodiment of the application can also analyze the character input by the user by using the asynchronous IO idea so as to reduce the resource occupation of the development machine.

[0043] The history record association function module is used for listening to user operations, when the user operations meet a preset association event, association content corresponding to the user operations is selected from the command line history record of the user and is fed back to the user.

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

[0045] The user operation is monitored, and when the user operation meets a preset association event, association content corresponding to the user operation is selected from a command line history record of the user and fed back to the user, specifically including monitoring input events of the user in a window of a terminal programming tool, triggering an association function when a predetermined word is input by the user, and selecting association content corresponding to the input word from the command line history record of the user and feeding back to the user. The user can operate the association content based on the keyboard, such as selecting the association content by using the up and down keys of the keyboard, completing the association content by using the Tab key of the keyboard, completing and executing the association content by using the Enter key of the keyboard, and the like.

[0046] The cache synchronization function module is configured to cache the opened tab page and / or the input record of the tab page before the terminal programming tool is closed when the user closes the terminal programming tool, and display the tab page and / or the input record of the tab page 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 tab is saved, and when the user opens the terminal again, the cached content is displayed immediately, and a comparison of the cached content is performed synchronously. When the comparison result is different, the display content is updated.

[0048] Optionally, when the user closes the terminal programming tool, the opened tab page is saved, the browser cache is pulled and displayed when the terminal is opened again, and the tab page selected last time is selected.

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

[0050] The software control function module is configured to create a SIDE project or a preset software based on a first preset command and realize front-end and back-end functions of the SIDE project or the 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 application can realize various functions by setting the AI question and answer assistant function module, the history record association function module, the cache synchronization function module, and the software control function module, and can be applied to development and office scenarios.

[0052] On the basis of the above-mentioned embodiments, as an optional embodiment, the first preset command includes an env|grep CDS command, a creation command, and the like. The software control function module creates a SIDE project or a preset software based on the first preset command, including:

[0053] Determine whether the CDS environment under the username is normal, if normal, directly proceed to the next step, otherwise check the environment variables based on the env|grep CDS command and configure the CDS environment based on the checked environment variables; wherein CDS (Core Data Service) is a new infrastructure in SAP HANA, used to define and use a semantically rich data model, implemented through data definition language (DDL), query language (QL) and expression language (EL), supporting functions such as writing operations, transaction semantics, constraints, etc.

[0054] In the implementation process, when opening the terminal programming tool to create a SIDE project or preset software, the CDS environment under the default specified username is normal, and no additional configuration is required. SIDE project (SAP Integration and Development Environment) is an integrated and development environment provided by SAP, designed to help developers and enterprise users more efficiently build, integrate and manage SAP applications and services.

[0055] If the CDS environment of the SIDE project is incorrect, the env|grep CDS command can be used to check whether the environment variables are configured, if not, the predetermined command is used to add environment variables, wherein the predetermined command can be export CDS_USER=test01, export CDS_HOME=$CDS_ROOT / user / test01, and test01 is a custom name.

[0056] In response to the user inputting a creation command 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 attributes.

[0057] The creation command refers to the rose create command, and the rose create app-username-modulename command in the window of the terminal programming tool can be executed to create the SIDE project or preset software. When the rose create command is executed, rose bind raw-onecloud-module-factory is automatically executed, and after the command is executed successfully, the newly created project appears in real time in the SIDE. During the creation process, if an error occurs, the terminal will feedback an error prompt in real time.

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

[0059] -p (path): specify path, create under the current path, no need to input path additionally;

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

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

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

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

[0064] -o (ose): create pure back end;

[0065] Among them, the project attribute refers to creating a SIDE project as a pure front end or a pure back end.

[0066] It can be understood that the technical scheme for creating a SIDE project or preset software provided by the embodiment of the application is simpler in operation and reduces the requirement for the developer compared with the existing project creation scheme.

[0067] Figure 4 is a schematic diagram for realizing the front end and back end functions of a SIDE project provided by the application, as shown in Figure 4 On the basis of the above embodiment, as an optional embodiment, the software control function module realizes the front end and back end functions of the SIDE project or preset software, comprising:

[0068] The front end and back end functions of the SIDE project or preset software are realized based on an LSP client and a plurality of LSP servers, and the application is described taking a SIDE project as an example.

[0069] Figure 2 Among them, browser refers to a web browser, which is a software application program for accessing and displaying Internet content, and realizes the front end function of the SIDE project based on the LSP client. The LSP client (Language Server Protocol Client) refers to a client application program for realizing the language server protocol.

[0070] Figure 4In the context, the workstation is a backend editor, including the CopilotAgent Server, which is a backend service for supporting intelligent programming assistants such as GitHub Copilot, and the CopilotAgent.js, which is a JavaScript library or module for implementing the functions of intelligent programming assistants such as GitHub Copilot, mainly providing an interface for interacting with the Copilot service.

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

[0072] Code completion function: the SIDE editor (vim / nvim / monaco) accesses the Copilot code completion service through the LSP client call, without involving cooper, vimcall, or coc.

[0073] Forwarding function: the jsonRPC call between the LSP client and the LSP server (including the Copilot agent) is transparently forwarded through the gateway; the jsonRPC protocol defines a simple request-response model, and the communication parties interact by sending and receiving json format messages.

[0074] Common service function: the LSP server provides common services without deploying management 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 (generally https, and the basic language service is usually completed locally without cloud service), and can be proxied through the gateway due to network requirements.

[0076] Expansion function: different SIDE editor extensions are supported, and different language services and syntax highlighting functions can be easily accessed through the extended LSP server.

[0077] It can be understood that the embodiments of the present application realize the multi-function of the SIDE project.

[0078] On the basis of the above-mentioned embodiments, 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 user inputting a running instruction in a window of the terminal programming tool, running software corresponding to a software version parameter in the running instruction on the desktop of the development machine according to the software version parameter.

[0080] The running instruction refers to a Rose Open command, specifically, rose open app-username-modulename is executed in the window of the terminal programming tool to run the App.

[0081] The software version parameter includes the following three types:

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

[0083] -d (dev): running the App in the local development, the desktop icon is marked with dev, and the bridge server capability is called;

[0084] -e (earlybird): running 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 the rose open command is with the -dev parameter, the icon with the dev tag and the App name will be generated on the desktop, and only the creator can see it;

[0087] If the rose open command is with the -earlybird parameter, the icon with the earlybird tag and the App name will be generated on the desktop, and the users in the white list can see it;

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

[0089] The icon has been generated, but the icon is modified, and the icon is updated in real time;

[0090] The icon has been generated, and double-clicking the icon represents executing the rose open command;

[0091] If the project is deleted, when the App is running, a pop-up window is prompted: "Cannot find the project, do you want to delete the icon?", and the icon is deleted by clicking the confirm button.

[0092] In one embodiment, if the App name or the parameter corresponding to the App name does not exist, an error prompt is given.

[0093] It can be understood that the embodiment of the present application provides a specific scheme for controlling preset software in the window of the terminal programming tool based on a second preset command, and through the combination of the terminal programming tool and the command line function, calling of various forms of software interfaces can be realized.

[0094] On the basis of the above embodiment, as an optional embodiment, the application further comprises a basic function module, which is used to realize preset desktop functions, preset window functions, preset search and installation functions and preset basic functions.

[0095] Optionally, the preset desktop functions comprise the following functions:

[0096] 1. A terminal icon exclusive to the desktop;

[0097] 2. Clicking start->all applications->terminal icon on the taskbar to enter the terminal;

[0098] 3. Finding the terminal icon on the desktop and double-clicking to run;

[0099] 4. Judging whether the development machine is bound, if yes, opening the terminal window, if not, popping up a prompt box to prompt that the development machine is not bound and to go to add immediately, and clicking OK to go to the original development machine binding page;

[0100] 5. Supporting the right-click "open, update, uninstall and remove" of the mouse.

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

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

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

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

[0105] 1. Supporting searching or installing the terminal application from the application store.

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

[0107] 1. Menu bar "file, view, setting and help";

[0108] 1.1. Clicking "file" can switch the bound development machine, and clicking the development machine can open a new development machine window;

[0109] 1.2. Clicking "view" can open the full screen and hidden function menu;

[0110] 1.3. Clicking "setting" can shell configuration;

[0111] --1.4. Clicking "Help" can view the introduction of the terminal use;

[0112] 2. Support copy and paste function;

[0113] 3. Support to add multiple tags and close the tag function.

[0114] It can be understood that the embodiment of the application provides a specific scheme of the basic function module of the terminal programming tool, and enriches the functions of the terminal programming tool.

[0115] On the basis of the above embodiment, as an optional embodiment, the terminal programming tool is further used for performing command operation on multiple cloud hosts and local hosts, obtaining the back-end task processing results corresponding to the multiple cloud hosts and local hosts and feeding back to the window of the terminal programming tool to realize the connection of the front-end display interface and the back-end task.

[0116] It can be understood that the embodiment of the application can use the terminal programming tool in the development machine desktop, can achieve the two-way feedback of quickly connecting the front-end display interface and the back-end task execution, and the front-end and the back-end are called to complete the processing of the system data information to be processed, provide the results most suitable for the user operation scene, and reduce the use difficulty of the user to the desktop and even the platform.

[0117] On the basis of the above embodiment, as an optional embodiment, the terminal programming tool is further used for realizing the function corresponding to the preset shortcut instruction based on the preset shortcut instruction.

[0118] The preset shortcut instruction, instruction example and function description are as follows:

[0119] 1, hodo is used to execute the command in the identity of a super user or other privileged user, and the corresponding instruction example is hodorose update raw-onecloud-mudem, and the function description is to provide temporary privileged access, allowing ordinary users to perform operations that require privileges, such as installing software, modifying system configuration, etc., without the need to switch to super user (root) identity.

[0120] When installing and updating the Module of the first and second layers (generally referring to the installation under the codigger / sense / directory), this command needs to be used.

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

[0122] An example of the command rose search is rose search side -s, which has the function of fuzzy searching for a Module.

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

[0124] The example of the instruction rose install is rose install app-onecloud-side v2.3.1-s, and the function description is to install the specified Module, and the version number to be installed can be specified.

[0125] 4. The example of the instruction rose freeze is rose freeze > requirement.txt, rose install -r requirement.txt, and the respective function descriptions are to collect the installed Module information for migration, and > xxx.txt: output redirection to the specified file.

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

[0127] An example of the instruction rose uninstall is rose uninstall app-onecloud-side, whose function description is to uninstall a specified Module.

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

[0129] The example of the instruction rose update is rose update app-onecloud-side, rose update (update all installed Modules), rose update rose object (update rose itself), and the function description is to update the specified Module.

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

[0131] The example of the instruction rose list is rose list-o-a, and the function description is to view the installed Module list under the current host.

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

[0133] An example of the instruction rose info is rose info app-onecloud-side-v20.1-s, and the function description is to view the online version information and local installation information of the specified Module.

[0134] 9. The option parameters of the instruction rose push include <module>[-u username], [-p password], and [-s], <module>: string, multi-segment Module name; [-u username] string, username; [-p password] string, password; [-s]: specify small ring tomb, default is large environment.

[0135] The example of the instruction rose push is rose push app-onecloud-side-u chenjc-pabc123-s, and the function description is to push the Module to the Rose repository. The pushing premise is: 1) Before pushing the application, please confirm whether there is a Rose repository account. If not, you need to register an account on the Objectsense website. 2) The application to be pushed to the Rose repository needs to be stored in the $HOME / vim / sense path.

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

[0137] Examples of the instruction rose submit are rose submit app-onecloud-side-v, rose delist app-onecloud-example-V1.0.0-u, onecloud-p12345678, and the function descriptions thereof are submitting a release audit, -u / -p, and --token, respectively, and either of the two is used, and if a token is specified, u / p is not required.

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

[0139] Examples of the instruction rose delist are rose delist ap-onecloud-side-v1.1.0-uoneclou–p, abc123-token Xxxxxxx, and their function descriptions are respectively to unlist the specified version of the module through the command line, to use -u, -p, and -token alternatively.

[0140] 12, the option parameters of the instruction rose test include [-c 1 / 0], [-r 1 / 0], and [-i info], [-c 1 / 0]: int, whether to detect coverage (1-detect, 0-not detect, the default is 0); [-r 1 / 0]: int, whether to recursively detect (1-recursively detect, 0-not recursively detect, the default is 0); [-i info]: string, conditional information, such as ring variable, preloaded log module, etc.

[0141] Examples of the instruction rose test are rose test app-testo220example-c 1-r 1, and their function descriptions are to execute the RT test of the Module, -i: unit test conditional information, such as defining environment variables, preloading log modules, etc. (the default is empty).

[0142] 13, the option parameters of the instruction rose pretty include <module> , <module>: string, multiple segments of Module name & file path.

[0143] An example of the instruction rose pretty is rose pretty app-onecloud-side, rose pretty app-onecloud-side / src / .ose, and its function description is to beautify the source code of the Module.

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

[0145] The example of the instruction rose run is rose run app-onecloud-side, rose run app-onecloud-side edit xxx.ose (open the file with side), and the function description is to run the specified Module (only for ose).

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

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

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

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

[0150] The instruction rose edit takes rose edit xxx.ose as an example, and the function description is to edit the code file of the Module.

[0151] 18. The instruction rose debug is used for debugging the Module.

[0152] 19. The instruction rose build is used for building the Module.

[0153] 20. The instruction rose compile is used for compiling the source code of the Module.

[0154] It can be understood that the preset shortcut instruction of the terminal programming tool is provided in the embodiment of the application, so as to quickly realize the function corresponding to the preset shortcut instruction.

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

[0156] The terminal programming tool control method provided by the application is described below, and the terminal programming tool control method described below can be correspondingly referred to the terminal programming tool described above.

[0157] Figure 5 is a flowchart of the terminal programming tool control method provided by the application, as Figure 5 The application also provides a terminal programming tool control method for controlling the terminal programming tool, and the method comprises the following steps:

[0158] In step S100, the terminal programming tool is controlled based on a preset control scheme to realize one or more of the AI question and answer assistant function module, the history record association function module, the cache synchronization function module and the software control function module.

[0159] The preset control scheme comprises responding to a function selection instruction issued by a user, selecting a target function module corresponding to the function selection instruction and running, and when the corresponding target function module is running, realizing the 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 application can control the terminal programming tool of any of the above embodiments when actually running, and has corresponding technical effects, which will not be described here.

[0161] Figure 6 is a structural schematic diagram of an electronic device provided by the present application, as Figure 6 shown, the electronic device can include a processor 610, a communications interface 620, a memory 630, and a communications bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other through the communications bus 640. The processor 610 can invoke 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 record 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 memory 630 described above can be implemented in the form of a software function unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium, includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0163] On the other hand, the present application 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 by the above embodiments, 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 record association function module, a cache synchronization function module, a SIDE project function module, and a software control function module.

[0164] In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements a terminal programming tool control method provided by any of the above embodiments, the method comprising: 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 record 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 can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0166] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in terms of contribution to the prior art, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) 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 application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.< / 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 by The AI question and answer assistant function module comprises an AI question and answer assistant trained on a preset development platform, which is configured to determine whether to start the AI question and answer assistant according to browser cache data in response to a user instruction to enter an AI question and answer mode, and configured to feed back a command corresponding to a character input by the user in the AI question and answer mode and a command tutorial to the user, and configured to combine a preset command with a Linux command to form one or more of a shell script instruction, a file operation instruction, a file content viewing instruction, a system management instruction, a network management instruction, a process control instruction, a system security instruction, a software installation instruction, a user management instruction, a system monitoring instruction, and a system service instruction. The history record association function module is configured to listen to user operations, and when the user operations meet a preset association event, select association content corresponding to the user operations from a command line history record of the user and feed back to the user. The cache synchronization function module is configured to cache a tab page opened before a terminal programming tool is closed and / or input records of the tab page when the terminal programming tool is closed, and display the tab page and / or the input records of the tab page when the terminal programming tool is opened again. The software control function module is configured to create a SIDE item or a preset software based on a first preset command, and realize front-end and back-end functions of the SIDE item or the preset software; and control the preset software in a window of the terminal programming tool based on a second preset command. The software control function module creates the SIDE item or the preset software based on the first preset command, comprising: determining whether a CDS environment under a username is normal, if yes, proceeding to the next step, otherwise, checking environment variables based on an env | grep CDS command and configuring the CDS environment based on the checked environment variables; creating the SIDE item or the preset software according to parameters in a creation command input by a user in a window of the terminal programming tool, the parameters in the creation command comprising a project path, a project category, a project description, a project version number, and a project attribute; The software control function module realizes the front-end and back-end functions of the SIDE item or the preset software, comprising: realizing the front-end and back-end functions of the SIDE item or the preset software based on an LSP client and a plurality of LSP servers. The software control function module controls the preset software in the window of the terminal programming tool based on the second preset command, comprising:

2. The terminal programming tool according to claim 1, characterized in that, running software corresponding to a software version parameter in a running instruction input by a user in the window of the terminal programming tool according to the software version parameter, and controlling a software icon corresponding to the software version parameter on a desktop of a development machine. ​ 3. The terminal programming tool according to claim 1, characterized in that, The base function module is further configured to implement preset desktop functions, preset window functions, preset search and installation functions, and preset basic functions.

4. The terminal programming tool according to claim 1, characterized in that, The terminal programming tool is further configured to perform command operations on the plurality of cloud hosts and the local host, obtain corresponding back-end task processing results of the plurality of cloud hosts and the local host, and feed back the back-end task processing results to a window of the terminal programming tool to realize connection between a front-end display interface and the back-end task.

5. A terminal programming tool control method, characterized by, A method for controlling the terminal programming tool according to any one of claims 1-4, the method comprising: 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 record association function module, a cache synchronization function module, and a software control function module.

6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the terminal programming tool control method according to claim 5. 7.A non-transitory computer-readable storage medium having stored thereon a computer program. The computer program is executed by the processor to implement the steps of the terminal programming tool control method according to claim 5.

8. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the terminal programming tool control method according to claim 5. The computer program is executed by the processor to implement the steps of the terminal programming tool control method according to claim 5.

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