Files
gitea-tea/cmd/pulls/stack.go
T
2026-09-24 23:31:32 -07:00

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