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