gitea.tea/cmd/teams.go
Ross Golder 6c40906cb4
feat(teams): add teams list, create, delete, edit subcommands
Provide basic CRUD operations for organization teams via 'tea teams'.
Defaults to listing teams for the configured organization when invoked
with no subcommand. Subsequent PRs will add 'tea teams members' and
'tea teams repos' as nested subcommands.
2026-09-05 09:54:10 +07:00

41 lines
933 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package cmd
import (
"gitea.dev/tea/cmd/teams"
"github.com/urfave/cli/v3"
)
// CmdTeams represents the teams command for managing organization teams.
var CmdTeams = cli.Command{
Name: "teams",
Aliases: []string{"team"},
Category: catEntities,
Usage: "Manage organization teams",
Description: "Manage organization teams",
Action: teams.RunTeamsList,
Commands: []*cli.Command{
&teams.CmdTeamsList,
&teams.CmdTeamsCreate,
&teams.CmdTeamsDelete,
&teams.CmdTeamsEdit,
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: "org",
Usage: "organization to operate on",
},
&cli.StringFlag{
Name: "login",
Usage: "gitea login instance to use",
},
&cli.StringFlag{
Name: "output",
Aliases: []string{"o"},
Usage: "output format [table, csv, simple, tsv, yaml, json]",
},
},
}