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.

CN107608698AActive Publication Date: 2018-01-19无线生活(杭州)信息科技有限公司
2 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-01-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a command line tool updating method and device. The method comprises the steps that whether or not a command line module corresponding to a command line tool under a target buffer route is the latest version is detected, under the target buffer route, no highest authority is needed during file modification, the command tool module is the portion, except an updating detection module and an updating installation module, in an installation package of the command line tool, and when the command line module is not the latest version, the command line module is updated to thelatest version. According to the technical scheme, after the command line tool is updated, command line tool developers do not need to inform command line tool users to update the command line tool one by one, no manual updating of the command line tool users is needed, the experience of the developers and the users is optimized, and it is ensured that the experience of the command line tool users can be consistent on the condition that the command line tool is rapidly updated.
Need to check novelty before this filing date? Find Prior Art

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...