17 lines
302 B
Go
17 lines
302 B
Go
package pull_request
|
|
|
|
import (
|
|
"gitee_cli/internal/api/pull_request"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var CloseCmd = &cobra.Command{
|
|
Use: "close",
|
|
Short: "Close pull request",
|
|
Args: cobra.ExactArgs(1),
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
iid := args[0]
|
|
pull_request.Close(iid)
|
|
},
|
|
}
|