Command execution method based on command line interface, electronic equipment and storage medium
The embodiment of the invention provides a command execution method based on a command line interface, electronic equipment and a storage medium. The method comprises the steps of acquiring a first command input by a user in a command line interface, the first command at least carries a command name...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention provides a command execution method based on a command line interface, electronic equipment and a storage medium. The method comprises the steps of acquiring a first command input by a user in a command line interface, the first command at least carries a command name and at least one command parameter, a target command definition corresponding to the command name is searched for in a temporary command file, the temporary command file comprises at least one command definition, and the command definition is stored in the command line interface; and according to the at least one command parameter and the target command definition, the first command is executed to obtain an execution result of the first command, so that the flexibility and convenience of CLI use are improved.
本申请实施例提供了一种基于命令行界面的命令执行方法、电子设备以及存储介质。该方法包括:获取用户在命令行界面输入的第一命令,该第一命令至少携带有命令名称和至少一个命令参数,并从临时命令文件中查找与该命令名称对应的目标命令定义,该临时命令文件中包括至少一个命令定义,再根据该至少一个命令参数和该目标命令定义,执行该第一命令,得到该第一命令的执行结果提高了CLI使用的灵活性和便利性。 |
---|