mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -04:00
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.
41 lines
933 B
Go
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]",
|
|
},
|
|
},
|
|
}
|