gitee_cli/cmd/pull_request/close.go

17 lines
302 B
Go
Raw Normal View History

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)
},
}