mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
fix: fix kratos run when cmd number is one (#1956)
This commit is contained in:
parent
d4c4908ef6
commit
73545347e8
@ -42,8 +42,8 @@ func Run(cmd *cobra.Command, args []string) {
|
||||
fmt.Fprintf(os.Stderr, "\033[31mERROR: %s\033[m\n", "The cmd directory cannot be found in the current directory")
|
||||
return
|
||||
} else if len(cmdPath) == 1 {
|
||||
for k, v := range cmdPath {
|
||||
dir = path.Join(v, k)
|
||||
for _, v := range cmdPath {
|
||||
dir = v
|
||||
}
|
||||
} else {
|
||||
var cmdPaths []string
|
||||
|
Loading…
x
Reference in New Issue
Block a user