Command line tool updating method and device
An update method and command line technology, applied in software deployment, version control, software maintenance/management, etc., can solve problems such as inconsistent experience, not good enough, inconsistent command line tool versions, etc., to ensure consistent experience and optimize experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2018-01-19
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The technical field of development and use of command line tools of the present invention, in particular, relates to a method and device for updating command line tools. Background technique
[0002] At present, if there is an update to the command-line tool, the current common practice is that the developer of the command-line tool needs to notify the user of the command-line tool, and let the user of the command-line tool manually execute the update command to complete the update. However, the above-mentioned existing technical solutions still have some disadvantages that make the user inconvenient and the experience is not good enough: for the developer of the command line tool, if the command line tool is updated, the developer of the command line tool needs to inform the command orally or in the program The user tool of the line tool has been updated; for the user of the command line tool, it is often necessary to enter the system password to upda...
Examples
Embodiment Construction
[0036] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.
[0037] figure 1 Shown is a flowchart of a method for updating a command line tool in an embodiment of the present invention, as shown in figure 1 As shown, the method for updating the command line tool includes the following steps S11-S12:
[0038] Step S11, check whether the command-line module corresponding to the command-line tool in the target cache path is the latest version. Under the target cache path, file modification does not require the highest authority, and the command-line module is the installation package of the command-line tool except the update detection module and update Install the parts other than the module.
[0039] Step S12, when the comma...