Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ All notable changes to `src-cli` are documented in this file.

- 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.

### Changed

- The deprecated `src extensions` commands have been removed.

## 6.4.0

## 6.3.0
Expand Down
16 changes: 0 additions & 16 deletions cmd/src/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import (
"log"
"os"
"slices"
"strings"

"github.com/sourcegraph/sourcegraph/lib/errors"

"github.com/sourcegraph/src-cli/internal/cmderrors"
)
Expand Down Expand Up @@ -128,16 +125,3 @@ func (c commander) run(flagSet *flag.FlagSet, cmdName, usageText string, args []
log.Printf("%s: unknown subcommand %q", cmdName, name)
log.Fatalf("Run '%s help' for usage.", cmdName)
}

func didYouMeanOtherCommand(actual string, suggested []string) *command {
fullSuggestions := make([]string, len(suggested))
for i, s := range suggested {
fullSuggestions[i] = "src " + s
}
msg := fmt.Sprintf("src: unknown subcommand %q\n\nDid you mean:\n\n\t%s", actual, strings.Join(fullSuggestions, "\n\t"))
return &command{
flagSet: flag.NewFlagSet(actual, flag.ExitOnError),
handler: func(args []string) error { return errors.New(msg) },
usageFunc: func() { log.Println(msg) },
}
}
1 change: 0 additions & 1 deletion cmd/src/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Examples:
"": &commands,
"batch": &batchCommands,
"config": &configCommands,
"extensions": &extensionsCommands,
"extsvc": &extsvcCommands,
"code-intel": &codeintelCommands,
"orgs": &orgsCommands,
Expand Down
87 changes: 0 additions & 87 deletions cmd/src/extensions.go

This file was deleted.

174 changes: 0 additions & 174 deletions cmd/src/extensions_copy.go

This file was deleted.

77 changes: 0 additions & 77 deletions cmd/src/extensions_delete.go

This file was deleted.

Loading
Loading