Skip to content

Commit 0164877

Browse files
Prepare CLI for extension sunsetting (#825)
1 parent fc87b62 commit 0164877

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

cmd/src/extensions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ var extensionsCommands commander
1010
func init() {
1111
usage := `'src extensions' is a tool that manages extensions in the extension registry on a Sourcegraph instance.
1212
13-
EXPERIMENTAL: Extensions are experimental functionality on Sourcegraph and in the 'src' tool.
13+
DEPRECATED: We're in the process of removing Sourcegraph extensions with our September release.
14+
Learn more: https://docs.sourcegraph.com/extensions/deprecation
1415
1516
Usage:
1617

cmd/src/extensions_list.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Examples:
6363
nodes {
6464
...RegistryExtensionFields
6565
}
66+
error
6667
}
6768
}
6869
}` + registryExtensionFragment
@@ -71,6 +72,7 @@ Examples:
7172
ExtensionRegistry struct {
7273
Extensions struct {
7374
Nodes []Extension
75+
Error string
7476
}
7577
}
7678
}
@@ -81,6 +83,10 @@ Examples:
8183
return err
8284
}
8385

86+
if result.ExtensionRegistry.Extensions.Error != "" {
87+
return fmt.Errorf("%s", result.ExtensionRegistry.Extensions.Error)
88+
}
89+
8490
for _, extension := range result.ExtensionRegistry.Extensions.Nodes {
8591
if err := execTemplate(tmpl, extension); err != nil {
8692
return err

0 commit comments

Comments
 (0)