Ryan McGuire
c78c41f567
All checks were successful
Build and Publish / release (push) Successful in 1m10s
22 lines
364 B
Go
22 lines
364 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var projectAddCmd = &cobra.Command{
|
|
Use: "add",
|
|
Short: "Add a new Git project",
|
|
Aliases: []string{"a", "alias"},
|
|
Long: projAddCmdLong,
|
|
Run: projectAddCmdRun,
|
|
}
|
|
|
|
func projectAddCmdRun(cmd *cobra.Command, args []string) {
|
|
getProject(args)
|
|
}
|
|
|
|
func init() {
|
|
projectCmd.AddCommand(projectAddCmd)
|
|
}
|