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>
31 lines
796 B
Go
31 lines
796 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package actions
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"gitea.dev/tea/cmd/actions/variables"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
)
|
|
|
|
// CmdActionsVariables represents the actions variables command
|
|
var CmdActionsVariables = cli.Command{
|
|
Name: "variables",
|
|
Aliases: []string{"variable", "vars", "var"},
|
|
Usage: "Manage repository action variables",
|
|
Description: "Manage variables used by repository actions and workflows",
|
|
Action: runVariablesDefault,
|
|
Commands: []*cli.Command{
|
|
&variables.CmdVariablesList,
|
|
&variables.CmdVariablesSet,
|
|
&variables.CmdVariablesDelete,
|
|
},
|
|
}
|
|
|
|
func runVariablesDefault(ctx stdctx.Context, cmd *cli.Command) error {
|
|
return variables.RunVariablesList(ctx, cmd)
|
|
}
|