File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ var extensionsCommands commander
1010func 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
1516Usage:
1617
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments