databricks-cli/libs/command/context.go

14 lines
364 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)
)