Skip to content

Commit 4c967dd

Browse files
chore: Remove deprecated src teams commands (#1376)
* 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> * remove Sourcegraph70 feature flag and stale extensions/gateway help entries Sourcegraph70 was only used by the teams version gate. The `extensions` and `gateway` commands were removed in #1173 and earlier but were still listed in `src help`. 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> --------- Co-authored-by: Amp <amp@ampcode.com>
1 parent 4d48658 commit 4c967dd

13 files changed

Lines changed: 2 additions & 871 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,9 @@ The commands are:
5858
batch manages batch changes
5959
code-intel manages code intelligence data
6060
config manages global, org, and user settings
61-
extensions,ext manages extensions (experimental)
6261
extsvc manages external services
63-
gateway interacts with Cody Gateway
6462
login authenticate to a Sourcegraph instance with your user credentials
6563
orgs,org manages organizations
66-
teams,team manages teams
6764
repos,repo manages repositories
6865
search search for results on Sourcegraph
6966
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)