# simple_cli **Repository Path**: dev-zhuhongxi/simple_cli ## Basic Information - **Project Name**: simple_cli - **Description**: 使用数组查表的方式实现的简单cli模式,当前已实现help、exit、example等基础命令 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-20 - **Last Updated**: 2024-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # simple_cli #### 介绍 使用数组查表的方式实现的简单cli模式,当前已实现help、exit、example等基础命令 ### 使用方法 ##### 1. 在commands中添加命令结构体 ```c {"cmd_name", do_xxx, "short help about cmd"}, ``` ##### 2. 添加对应的执行函数"do_xxx()" ```c int do_xxx(struct cmd_tbl_s *cmd, int flag, int argc, char *argv[]) { return 0; } ```