Help us shape the future of Go! Take the 2026 Go Developer Survey

cmdutil

package
v0.2.58 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(cmd *cobra.Command) (*client.Client, error)

GetClient creates a LangSmith client from cobra flags, returning an error if no API key or OAuth access token is available.

func ResolveAPIKey

func ResolveAPIKey(cmd *cobra.Command) string

ResolveAPIKey reads the API key from cobra's flag tree → env.

func ResolveAPIURL

func ResolveAPIURL(cmd *cobra.Command) string

ResolveAPIURL reads the API URL from cobra's flag tree → env → default.

func ResolveClientOptions added in v0.2.26

func ResolveClientOptions(cmd *cobra.Command, refreshOAuth bool) (client.Options, error)

ResolveClientOptions resolves auth/routing from cobra flags, env, and saved profiles. This mirrors the top-level CLI auth behavior for standalone helpers such as `langsmith api`.

func ResolveFormat

func ResolveFormat(cmd *cobra.Command) string

ResolveFormat reads the output format from cobra's flag tree.

func ResolveJQ added in v0.2.29

func ResolveJQ(cmd *cobra.Command) string

ResolveJQ reads the jq filter from cobra's flag tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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