-
Notifications
You must be signed in to change notification settings - Fork 2
Add issue-template #7
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package cmd | ||
|
|
||
| import ( | ||
| "hypercloud-sds/hcsctl/pkg/rook" | ||
|
|
||
| "github.com/spf13/cobra" | ||
| ) | ||
|
|
||
| var issueTemplateCmd = &cobra.Command{ | ||
| Use: "issue-template", | ||
| Short: "issue-template을 생성합니다.", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's better to include an explanation that this command only gather rook-ceph related information (for now). Maybe we can consider to add flag or rename the command to specify what it is for when we need to gather other information in the future. rook 관련 로그파일과 클러스터 상태 정보를 수집하여 tar 파일을 생성합니다. 이슈 등록 시 이를 첨부해주세요. |
||
| Run: func(cmd *cobra.Command, args []string) { | ||
| err := rook.GetIssueTemplate() | ||
| if err != nil { | ||
| panic(err) | ||
| } | ||
| }, | ||
| } | ||
|
|
||
| func init() { | ||
| rootCmd.AddCommand(issueTemplateCmd) | ||
| } | ||
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.
It is more coherent to make subcommand as a verb.
I recommend
create-issue-infoorcreate-issue-templateinstead ofissue-template.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.
I agree but what about
gather? This command is more about gathering rook-ceph related log files and system status.