-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickly start developing curveadm based on cobra #337
Conversation
Add basic instructions for using the cobra library and an introduction to curveadm CLI development Signed-off-by: Liao PengFei <[email protected]>
cli/cli_cn.md
Outdated
@@ -0,0 +1,131 @@ | |||
# Curveadm CLI 开发 | |||
|
|||
## 命令行功能项目结构 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得先介绍cobra库比较好,简单介绍一下。
重点介绍一下curveadm的程序的组织方式,比如入口mian函数,以及到cli的组织方式
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已更新
Signed-off-by: Liao PengFei <[email protected]>
Signed-off-by: Liao PengFei <[email protected]>
Signed-off-by: Liao PengFei <[email protected]>
... | ||
} | ||
... | ||
addSubCommands(cmd, curveadm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以更详细一点吗?举个例子更详细的描述一下,比如是如何嵌套子命令的,以及子命令最终形式是什么。
包括后面的internal目录下是怎么串接起来的,可以更细一点。
LGTM! |
fix #265
Add basic instructions for using the cobra library and an introduction to curveadm CLI development