Skip to content

Commit

Permalink
Merge pull request #2073 from authzed/fix-serve-devtools-command
Browse files Browse the repository at this point in the history
Fix serve-devtools command and flags
  • Loading branch information
tstirrat15 authored Sep 20, 2024
2 parents 66ee7e2 + 61742e4 commit 09492d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/devtools.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/jzelinskie/cobrautil/v2"
"github.com/jzelinskie/cobrautil/v2/cobragrpc"
"github.com/jzelinskie/cobrautil/v2/cobrahttp"
"github.com/jzelinskie/cobrautil/v2/cobraotel"
"github.com/jzelinskie/stringz"
"github.com/spf13/cobra"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
Expand All @@ -28,6 +29,7 @@ import (
v0svc "github.com/authzed/spicedb/internal/services/v0"
"github.com/authzed/spicedb/pkg/cmd/server"
"github.com/authzed/spicedb/pkg/cmd/termination"
"github.com/authzed/spicedb/pkg/runtime"
)

func RegisterDevtoolsFlags(cmd *cobra.Command) {
Expand All @@ -42,6 +44,11 @@ func RegisterDevtoolsFlags(cmd *cobra.Command) {
cmd.Flags().String("s3-bucket", "", "s3 bucket name for s3 share store")
cmd.Flags().String("s3-endpoint", "", "s3 endpoint for s3 share store")
cmd.Flags().String("s3-region", "auto", "s3 region for s3 share store")

otel := cobraotel.New(cmd.Use)
otel.RegisterFlags(cmd.Flags())
termination.RegisterFlags(cmd.Flags())
runtime.RegisterFlags(cmd.Flags())
}

func NewDevtoolsCommand(programName string) *cobra.Command {
Expand Down

0 comments on commit 09492d7

Please sign in to comment.