mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-05 21:38:13 +02:00
33 lines
784 B
Go
33 lines
784 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package pulls
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"gitea.dev/tea/cmd/pulls/stack"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
// CmdPullsStack represents the stack command to manage pull request stacks
|
|
var CmdPullsStack = cli.Command{
|
|
Name: "stack",
|
|
Usage: "Manage pull request stacks",
|
|
Description: "List, show, push, reorder, restack, and merge pull request stacks",
|
|
Action: runPullsStackDefault,
|
|
Commands: []*cli.Command{
|
|
&stack.CmdStackList,
|
|
&stack.CmdStackShow,
|
|
&stack.CmdStackPush,
|
|
&stack.CmdStackRestack,
|
|
&stack.CmdStackReorder,
|
|
&stack.CmdStackMerge,
|
|
},
|
|
}
|
|
|
|
func runPullsStackDefault(ctx stdctx.Context, cmd *cli.Command) error {
|
|
return stack.RunStackList(ctx, cmd)
|
|
}
|