Skip to content

Commit ce9dd78

Browse files
authored
chore: Remove deprecated extensions commands (#1173)
Long deprecated, let's remove it to declutter. Test plan: Other commands still work locally. The deprecated `src extensions` commands have been removed.
1 parent 983280c commit ce9dd78

11 files changed

+6
-942
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ All notable changes to `src-cli` are documented in this file.
1515

1616
- SBOM support: Added `--image` and `--exclude-image` flags to `src sbom fetch` for filtering which docker images SBOMs are fetched for. Both flags support glob patterns (e.g., `frontend`, `*api*`) and comma-separated lists. The `sourcegraph/` image name prefix is optional.
1717

18+
### Changed
19+
20+
- The deprecated `src extensions` commands have been removed.
21+
1822
## 6.4.0
1923

2024
## 6.3.0

cmd/src/cmd.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import (
66
"log"
77
"os"
88
"slices"
9-
"strings"
10-
11-
"github.com/sourcegraph/sourcegraph/lib/errors"
129

1310
"github.com/sourcegraph/src-cli/internal/cmderrors"
1411
)
@@ -128,16 +125,3 @@ func (c commander) run(flagSet *flag.FlagSet, cmdName, usageText string, args []
128125
log.Printf("%s: unknown subcommand %q", cmdName, name)
129126
log.Fatalf("Run '%s help' for usage.", cmdName)
130127
}
131-
132-
func didYouMeanOtherCommand(actual string, suggested []string) *command {
133-
fullSuggestions := make([]string, len(suggested))
134-
for i, s := range suggested {
135-
fullSuggestions[i] = "src " + s
136-
}
137-
msg := fmt.Sprintf("src: unknown subcommand %q\n\nDid you mean:\n\n\t%s", actual, strings.Join(fullSuggestions, "\n\t"))
138-
return &command{
139-
flagSet: flag.NewFlagSet(actual, flag.ExitOnError),
140-
handler: func(args []string) error { return errors.New(msg) },
141-
usageFunc: func() { log.Println(msg) },
142-
}
143-
}

cmd/src/doc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Examples:
5656
"": &commands,
5757
"batch": &batchCommands,
5858
"config": &configCommands,
59-
"extensions": &extensionsCommands,
6059
"extsvc": &extsvcCommands,
6160
"code-intel": &codeintelCommands,
6261
"orgs": &orgsCommands,

cmd/src/extensions.go

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

cmd/src/extensions_copy.go

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

cmd/src/extensions_delete.go

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

0 commit comments

Comments
 (0)