mirror of
https://gitea.com/gitea/tea.git
synced 2026-06-05 18:58:43 +02:00
8e0666ab85
Reviewed-on: https://gitea.com/gitea/tea/pulls/1003 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-committed-by: techknowlogick <techknowlogick@gitea.com>
33 lines
830 B
Go
33 lines
830 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package actions
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"gitea.dev/tea/cmd/actions/workflows"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
// CmdActionsWorkflows represents the actions workflows command
|
|
var CmdActionsWorkflows = cli.Command{
|
|
Name: "workflows",
|
|
Aliases: []string{"workflow"},
|
|
Usage: "Manage repository workflows",
|
|
Description: "List and manage repository action workflows",
|
|
Action: runWorkflowsDefault,
|
|
Commands: []*cli.Command{
|
|
&workflows.CmdWorkflowsList,
|
|
&workflows.CmdWorkflowsView,
|
|
&workflows.CmdWorkflowsDispatch,
|
|
&workflows.CmdWorkflowsEnable,
|
|
&workflows.CmdWorkflowsDisable,
|
|
},
|
|
}
|
|
|
|
func runWorkflowsDefault(ctx stdctx.Context, cmd *cli.Command) error {
|
|
return workflows.RunWorkflowsList(ctx, cmd)
|
|
}
|