2024-12-30 20:50:31 +00:00
|
|
|
package project
|
2023-12-10 04:19:19 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
2024-12-30 20:50:31 +00:00
|
|
|
|
|
|
|
"gitea.libretechconsulting.com/rmcguire/git-project-manager/cmd/util"
|
2023-12-10 04:19:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var projectAddCmd = &cobra.Command{
|
|
|
|
Use: "add",
|
2024-12-27 22:42:44 +00:00
|
|
|
Short: "Add a new Git project",
|
2023-12-10 04:19:19 +00:00
|
|
|
Aliases: []string{"a", "alias"},
|
2024-12-30 20:50:31 +00:00
|
|
|
Long: util.ProjAddCmdLong,
|
2023-12-10 04:19:19 +00:00
|
|
|
Run: projectAddCmdRun,
|
|
|
|
}
|
|
|
|
|
|
|
|
func projectAddCmdRun(cmd *cobra.Command, args []string) {
|
2024-12-30 20:50:31 +00:00
|
|
|
getProject(cmd, args)
|
2023-12-10 04:19:19 +00:00
|
|
|
}
|