Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit cb3a1e4

Browse files
authored
feat/sg: add 'sg enterprise' commands for Cody Analytics (#63414)
Closes CORE-194 - added a bit more than strictly needed here, but this PR adds: - `sg enterprise subscription list` - `sg enterprise subscription set-instance-domain` - `sg enterprise update-membership` - `sg enterprise license list` ## Test plan <img width="1055" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/48ec40b0-fbac-4513-9ad8-fc3174774ada"> ![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/806fd054-806b-4ecb-a969-32900112f368)
1 parent 5770f30 commit cb3a1e4

File tree

12 files changed

+819
-338
lines changed

12 files changed

+819
-338
lines changed

deps.bzl

Lines changed: 245 additions & 238 deletions
Large diffs are not rendered by default.

dev/sg/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ go_library(
5454
"//dev/sg/buf",
5555
"//dev/sg/ci",
5656
"//dev/sg/dependencies",
57+
"//dev/sg/enterprise",
5758
"//dev/sg/internal/analytics",
5859
"//dev/sg/internal/background",
5960
"//dev/sg/internal/backport",

dev/sg/enterprise/BUILD.bazel

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_library")
2+
3+
go_library(
4+
name = "enterprise",
5+
srcs = ["sg_enterprise.go"],
6+
importpath = "github.com/sourcegraph/sourcegraph/dev/sg/enterprise",
7+
visibility = ["//visibility:public"],
8+
deps = [
9+
"//dev/sg/internal/category",
10+
"//dev/sg/internal/std",
11+
"//dev/sg/sams/samsflags",
12+
"//lib/enterpriseportal/subscriptions/v1:subscriptions",
13+
"//lib/enterpriseportal/subscriptions/v1/v1connect",
14+
"//lib/errors",
15+
"//lib/pointers",
16+
"@com_connectrpc_connect//:connect",
17+
"@com_github_sourcegraph_sourcegraph_accounts_sdk_go//:sourcegraph-accounts-sdk-go",
18+
"@com_github_sourcegraph_sourcegraph_accounts_sdk_go//scopes",
19+
"@com_github_urfave_cli_v2//:cli",
20+
"@org_golang_google_protobuf//encoding/protojson",
21+
"@org_golang_google_protobuf//types/known/fieldmaskpb",
22+
"@org_golang_x_exp//maps",
23+
"@org_golang_x_oauth2//:oauth2",
24+
],
25+
)

0 commit comments

Comments
 (0)