mirror of
https://gitea.com/gitea/tea.git
synced 2026-06-06 03:08:44 +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>
34 lines
783 B
Go
34 lines
783 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package cmd
|
|
|
|
import (
|
|
stdctx "context"
|
|
|
|
"github.com/urfave/cli/v3"
|
|
|
|
"gitea.dev/tea/cmd/sshkeys"
|
|
)
|
|
|
|
// CmdSSHKeys represents the ssh-keys command group
|
|
var CmdSSHKeys = cli.Command{
|
|
Name: "ssh-keys",
|
|
Aliases: []string{"ssh-key"},
|
|
Category: catSetup,
|
|
Usage: "Manage SSH public keys",
|
|
Description: "List, add, or delete SSH public keys on the current user's account",
|
|
ArgsUsage: " ",
|
|
Action: runSSHKeys,
|
|
Commands: []*cli.Command{
|
|
&sshkeys.CmdSSHKeyList,
|
|
&sshkeys.CmdSSHKeyAdd,
|
|
&sshkeys.CmdSSHKeyDelete,
|
|
},
|
|
Flags: sshkeys.CmdSSHKeyList.Flags,
|
|
}
|
|
|
|
func runSSHKeys(ctx stdctx.Context, cmd *cli.Command) error {
|
|
return sshkeys.RunSSHKeyList(ctx, cmd)
|
|
}
|