cmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagLogLevel  = "log-level"
	FlagLogFormat = "log-format"
)
View Source
const (
	FlagBaseURL    = "base-url"
	FlagListenAddr = "listen-addr"
)
View Source
const (
	FlagNodeGrpc          = "node-grpc"
	FlagGrpcNoTLS         = "grpc-no-tls"
	FlagGrpcTLSSkipVerify = "grpc-tls-skip-verify"
	FlagDataverseAddr     = "dataverse-addr"
	FlagGrpcTimeout       = "grpc-timeout"
)
View Source
const (
	ReadHeaderTimeout = 5 * time.Second
)

Variables

View Source
var (
	MCPStdin  io.Reader = os.Stdin
	MCPStdout io.Writer = os.Stdout
	MCPStderr io.Writer = os.Stderr
)

Functions

func Execute

func Execute(ctx context.Context)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func InstallLogRunE

func InstallLogRunE(_ *cobra.Command, _ []string) error

func WithDataverseClient

func WithDataverseClient(ctx context.Context, client dataverse.QueryClient) context.Context

WithDataverseClient injects a dataverse client into context.

func WithZerolog

func WithZerolog() server.StdioOption

WithZerolog configures the server to use zerolog for logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL