mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -04:00
docs(teams-repos): update CHANGELOG, README, regenerate CLI reference
Add a CHANGELOG entry for 'tea teams repos', extend the README examples with repository-access lines, and regenerate docs/CLI.md.
This commit is contained in:
parent
4e39eef4a0
commit
0ce5429cc5
|
|
@ -3,6 +3,7 @@
|
|||
## Unreleased
|
||||
|
||||
* FEATURES
|
||||
* Add `tea teams repos` subcommand for managing team repository access (list, add, remove)
|
||||
* Add `tea teams members` subcommand for managing team membership (list, add, remove)
|
||||
* Add `tea teams` subcommand for managing organization teams (list, create, delete, edit)
|
||||
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ EXAMPLES
|
|||
tea teams delete 5 -y # delete team ID 5 without prompting
|
||||
tea teams members list 5 # list members of team ID 5
|
||||
tea teams members add 5 alice -y # add a user to a team
|
||||
tea teams repos list 5 # list repos a team can access
|
||||
tea teams repos add 5 myorg/myrepo # grant a team access to a repo
|
||||
|
||||
# send gitea desktop notifications every 5 minutes (bash + libnotify)
|
||||
while :; do tea notifications --mine -o simple | xargs -i notify-send {}; sleep 300; done
|
||||
|
|
|
|||
46
docs/CLI.md
46
docs/CLI.md
|
|
@ -2085,6 +2085,52 @@ Remove a member from a team
|
|||
|
||||
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
|
||||
|
||||
### repos, repo, repositories
|
||||
|
||||
Manage team repository access
|
||||
|
||||
#### list, ls
|
||||
|
||||
List team repositories
|
||||
|
||||
**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
|
||||
|
||||
#### create, add, c
|
||||
|
||||
Grant a team access to a repository
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
|
||||
|
||||
#### delete, rm, remove
|
||||
|
||||
Revoke a team's access to a repository
|
||||
|
||||
**--confirm, -y**: confirm removal without prompting
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
|
||||
|
||||
## comments, comment, c
|
||||
|
||||
Manage comments on issues and pull requests
|
||||
|
|
|
|||
Loading…
Reference in a new issue