(args []string, flags *createCmdFlags)
| 95 | } |
| 96 | |
| 97 | func handlePath(args []string, flags *createCmdFlags) string { |
| 98 | path := pathArg(args) |
| 99 | wd, _ := os.Getwd() |
| 100 | if path == "" { |
| 101 | if flags.template != "" { |
| 102 | path = filepath.Join(wd, flags.template) |
| 103 | } else if flags.repo != "" && flags.subdir == "" { |
| 104 | path = filepath.Join(wd, filepath.Base(flags.repo)) |
| 105 | } else if flags.repo != "" && flags.subdir != "" { |
| 106 | path = filepath.Join(wd, filepath.Base(flags.subdir)) |
| 107 | } |
| 108 | } |
| 109 | return path |
| 110 | } |
no test coverage detected