Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Quickly start developing curveadm based on cobra #337

wants to merge 4 commits into from

Conversation

hdbdn77
Copy link

@hdbdn77 hdbdn77 commented Nov 10, 2023

fix #265
Add basic instructions for using the cobra library and an introduction to curveadm CLI development

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 开发

## 命令行功能项目结构
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得先介绍cobra库比较好,简单介绍一下。
重点介绍一下curveadm的程序的组织方式,比如入口mian函数,以及到cli的组织方式

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更新

...
}
...
addSubCommands(cmd, curveadm)
Copy link
Contributor

@caoxianfei1 caoxianfei1 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以更详细一点吗?举个例子更详细的描述一下,比如是如何嵌套子命令的,以及子命令最终形式是什么。

包括后面的internal目录下是怎么串接起来的,可以更细一点。

@caoxianfei1
Copy link
Contributor

LGTM!

@hdbdn77 hdbdn77 closed this Nov 23, 2023
@hdbdn77 hdbdn77 deleted the cliDoc branch November 23, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

《快速上手 CurveAdm 开发》文档加上cobra框架说明
2 participants