|
|
@ -25,8 +25,8 @@ func init() { |
|
|
|
if repoURL = os.Getenv("KRATOS_LAYOUT_REPO"); repoURL == "" { |
|
|
|
if repoURL = os.Getenv("KRATOS_LAYOUT_REPO"); repoURL == "" { |
|
|
|
repoURL = "https://github.com/go-kratos/kratos-layout.git" |
|
|
|
repoURL = "https://github.com/go-kratos/kratos-layout.git" |
|
|
|
} |
|
|
|
} |
|
|
|
CmdNew.Flags().StringVarP(&repoURL, "-repo-url", "r", repoURL, "layout repo") |
|
|
|
CmdNew.Flags().StringVarP(&repoURL, "repo-url", "r", repoURL, "layout repo") |
|
|
|
CmdNew.Flags().StringVarP(&branch, "-branch", "b", branch, "repo branch") |
|
|
|
CmdNew.Flags().StringVarP(&branch, "branch", "b", branch, "repo branch") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func run(cmd *cobra.Command, args []string) { |
|
|
|
func run(cmd *cobra.Command, args []string) { |
|
|
|