(_ *cobra.Command, _ []string)
| 61 | } |
| 62 | |
| 63 | func runProjectRegister(_ *cobra.Command, _ []string) error { |
| 64 | targetPath, err := resolveRegisterPath() |
| 65 | if err != nil { |
| 66 | return err |
| 67 | } |
| 68 | if err := validateProjectDir(targetPath); err != nil { |
| 69 | return err |
| 70 | } |
| 71 | id, name := resolveRegisterIDAndName(targetPath) |
| 72 | return registerProject(id, name, targetPath) |
| 73 | } |
| 74 | |
| 75 | func resolveRegisterPath() (string, error) { |
| 76 | p := projectRegisterPath |