Skip to content

Commit ecc526b

Browse files
remove: src teams commands
Teams were removed in Sourcegraph 7.0. Since #1257 (src-cli 7.0.0) the command has refused to run against 7.x instances, so it only works against instances that are no longer supported. Remove it and its reference page. Drops the "teams.md" entry from the doc golden list and the legacyGroupsWithoutSubcommandPages exemption added in #1375, so every remaining legacy group is now expanded into subcommand pages. Part of https://linear.app/sourcegraph/issue/FE-502 Amp-Thread-ID: https://ampcode.com/threads/T-01a08410-86ca-72be-9928-2810e837fae1 Co-authored-by: Amp <amp@ampcode.com>
1 parent 4d48658 commit ecc526b

12 files changed

Lines changed: 2 additions & 867 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ All notable changes to `src-cli` are documented in this file.
2626

2727
- Removed `src sbom` and `src signature` commands. SBOMs and container signatures are no longer published as of Sourcegraph 7.1.0.
2828
- Removed the internal `src batch exec` command. Server-side Batch Changes execution now uses the `batch-exec` binary in the Sourcegraph repository.
29+
- Removed the `src teams` (`src team`) commands. Teams were removed in Sourcegraph 7.0 and the commands have refused to run against 7.x instances since src-cli 7.0.0.
2930

3031
## 6.7.1104
3132

‎cmd/src/doc_test.go‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import (
1616
// deliberately left out of the commanders map in doc.go, so they render as a
1717
// single page instead of a directory of subcommand pages. Every entry needs a
1818
// reason.
19-
var legacyGroupsWithoutSubcommandPages = map[string]string{
20-
"teams.md": "teams were removed in Sourcegraph 7.0 (see checkTeamsAvailability); don't expand docs for a removed feature",
21-
}
19+
var legacyGroupsWithoutSubcommandPages = map[string]string{}
2220

2321
// expectedDocFiles is the full set of files 'src doc' is expected to write,
2422
// relative to the output directory. Update it deliberately when adding or
@@ -93,7 +91,6 @@ var expectedDocFiles = []string{
9391
"snapshot/summary.md",
9492
"snapshot/test.md",
9593
"snapshot/upload.md",
96-
"teams.md",
9794
"users/create.md",
9895
"users/delete.md",
9996
"users/get.md",

‎cmd/src/main.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ The commands are:
6363
gateway interacts with Cody Gateway
6464
login authenticate to a Sourcegraph instance with your user credentials
6565
orgs,org manages organizations
66-
teams,team manages teams
6766
repos,repo manages repositories
6867
search search for results on Sourcegraph
6968
search-jobs manages search jobs

‎cmd/src/team_members_list.go‎

Lines changed: 0 additions & 111 deletions
This file was deleted.

‎cmd/src/teams.go‎

Lines changed: 0 additions & 88 deletions
This file was deleted.

‎cmd/src/teams_create.go‎

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)