2023-12-10 04:19:19 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
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"},
|
|
|
|
Long: projAddCmdLong,
|
|
|
|
Run: projectAddCmdRun,
|
|
|
|
}
|
|
|
|
|
|
|
|
func projectAddCmdRun(cmd *cobra.Command, args []string) {
|
|
|
|
getProject(args)
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
projectCmd.AddCommand(projectAddCmd)
|
|
|
|
}
|