-
Notifications
You must be signed in to change notification settings - Fork 1
eshell EytionShell
PowerAngel edited this page Dec 26, 2021
·
2 revisions
下面,是对EytionShell部分的详解
涉及文件:
src/eysystem目录下所有文件和src/eymain.cpp
eymain.cpp是整个Eytion程序的入口处,是Eytion必不可少的部分\
该宏标志着整个Eytion程序处于调试状态下,调试状态下,Eytion程序默认启动Eshell,而不是以命令行的方式使用
该宏标志着Eytion处于发行状态下,在发行状态下,Eytion程序以命令行形式启动,不会启动Eshell
其中,Eytion命令行参数如下:
-v 查看当前Eytion版本
-shell 启动EShell
-f [file] 运行名为[file]的文件\
eshell是在Eytion以调试状态运行或者在发行状态中使用-shell命令时调用的一个Eytion内置的小控制台,它在文件:src/eysystem/eshell.*中实现
它的命名空间为eysys
用于传入一个命令执行时调用的函数
参数:
argv 命令参数
描述一个EshellCommand 成员:
| 成员名 | 类型 | 描述 |
|---|---|---|
toggle |
int |
用于切换EshellCommand状态 |
_cond |
string |
指定该命令触发的条件 |
_event |
command_event |
指令调用的函数 |
_active |
bool |
标识该命令是否激活(false:不激活) |
nothing here