Skip to content

Commit 385c745

Browse files
committed
Add issue-template
issue-template command collects logs and information for problem analysis
1 parent 724ad9d commit 385c745

File tree

4 files changed

+545
-0
lines changed

4 files changed

+545
-0
lines changed

hcsctl/cmd/issue-template.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package cmd
2+
3+
import (
4+
"hypercloud-storage/hcsctl/pkg/rook"
5+
6+
"github.com/spf13/cobra"
7+
)
8+
9+
var issueTemplateCmd = &cobra.Command{
10+
Use: "issue-template",
11+
Short: "issue-template을 생성합니다.",
12+
Run: func(cmd *cobra.Command, args []string) {
13+
err := rook.GetIssueTemplate()
14+
if err != nil {
15+
panic(err)
16+
}
17+
},
18+
}
19+
20+
func init() {
21+
rootCmd.AddCommand(issueTemplateCmd)
22+
}

hcsctl/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require (
1212
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
1313
github.com/juju/testing v0.0.0-20191001232224-ce9dec17d28b // indirect
1414
github.com/markbates/pkger v0.17.0
15+
github.com/pkg/errors v0.8.0
1516
github.com/spf13/cobra v0.0.6
1617
github.com/stretchr/testify v1.5.1 // indirect
1718
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 // indirect

hcsctl/go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
136136
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
137137
github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
138138
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
139+
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
139140
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
140141
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
141142
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

0 commit comments

Comments
 (0)