{"modulePath":"github.com/floatdrop/grpcproc/tools","version":"v0.17.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\nPackage cli is grpcprocctl: inspect and operate grpcproc nodes through their Inspector, from a terminal or, with \\`grpcprocctl mcp\\`, from an AI agent.\n\n## Variables\n\n```go\nvar Version string\n```\nVersion, when set, overrides the version grpcprocctl reports: -ldflags \"-X github.com/floatdrop/grpcproc/tools/cli.Version=v1.2.3\". Left empty, it is read from the build: the module version that \\`go install …@v1.2.3\\` stamps, or \"dev\" for a binary built from a checkout.\n\n## Functions\n\n```go\nfunc Main(ctx context.Context, args []string, env Env) int\n```\nMain runs grpcprocctl with args (without the program name) and returns the exit code: 0, 1 for a failed command, 2 for bad usage.\n\n## Types\n\n```go\ntype Conn struct {\n\tAddr       string\n\tPlaintext  bool\n\tCACert     string\n\tCert, Key  string\n\tServerName string\n}\n```\nConn says how to reach an Inspector.\n\n```go\ntype Env struct {\n\tStdout, Stderr io.Writer\n\tDial           func(ctx context.Context, c Conn) (grpc.ClientConnInterface, func() error, error)\n\tMCPTransport   mcp.Transport\n\t// Listen is where grpcprocctl web serves; a TCP listener when nil.\n\tListen func(ctx context.Context, addr string) (net.Listener, error)\n\tGetenv func(string) string\n\t// BuildInfo is where the version comes from; debug.ReadBuildInfo when nil.\n\tBuildInfo func() (*debug.BuildInfo, bool)\n}\n```\nEnv is what grpcprocctl talks to. Main fills what is left zero with the process's own: stdout, stderr, a gRPC dial, MCP over stdio.\n\n","path":"github.com/floatdrop/grpcproc/tools/cli","name":"cli","synopsis":"Package cli is grpcprocctl: inspect and operate grpcproc nodes through their Inspector, from a terminal or, with `grpcprocctl mcp`, from an AI agent.","isRedistributable":true}
