Documentation ¶
Index ¶
- Variables
- func CreateCommandIDContext(ctx context.Context, commandID string) context.Context
- func CreateStartTimeContext(ctx context.Context, time *time.Time) context.Context
- func GenerateCommandID() string
- func GetCommandID(ctx context.Context) (string, error)
- func GetStartTime(ctx context.Context) (*time.Time, error)
- func SendCommandAnalyticsEvent(cmd *cobra.Command, args []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValueNotConfigured = errors.New("value is not set in context") ErrIllegalContextValue = errors.New("illegal value is set in context") )
Functions ¶
func CreateCommandIDContext ¶
func CreateStartTimeContext ¶
func GenerateCommandID ¶
func GenerateCommandID() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.