22 lines
367 B
Go
22 lines
367 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var projectAddCmd = &cobra.Command{
|
||
|
Use: "add",
|
||
|
Short: "Add a new GitLab project",
|
||
|
Aliases: []string{"a", "alias"},
|
||
|
Long: projAddCmdLong,
|
||
|
Run: projectAddCmdRun,
|
||
|
}
|
||
|
|
||
|
func projectAddCmdRun(cmd *cobra.Command, args []string) {
|
||
|
getProject(args)
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
projectCmd.AddCommand(projectAddCmd)
|
||
|
}
|