databricks-cli/libs/command/context.go

18 lines
526 B
Go

package command
// key is a package-local type to use for context keys.
//
// Using an unexported type for context keys prevents key collisions across
// packages since external packages cannot create values of this type.
type key int
const (
// configUsedKey is the context key for the auth configuration used to run the
// command.
configUsedKey = key(2)
// accountClientKey is the context key for an already configured account
// client that can be used to make authenticated requests.
accountClientKey = key(4)
)