File tree Expand file tree Collapse file tree 4 files changed +545
-0
lines changed
Expand file tree Collapse file tree 4 files changed +545
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
136136github.com/onsi/gomega v1.7.0 /go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY =
137137github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc =
138138github.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 =
139140github.com/pkg/errors v0.8.0 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
140141github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
141142github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
You can’t perform that action at this time.
0 commit comments