databricks-cli/libs/command
shreyas-goenka c19c8bbbf7
Add library to store cmd-exec-id in context (#2439)
## Why
The command execution ID is a UUID that should be initialized once, and
then have a consistent read value for the duration of the command.

As we start emitting telemetry events, we also want to emit the command
execution ID in the telemetry payload. This library helps consolidate
all reads to the `cmd-exec-id` value, and ensures there's only one write
for the UUID.

relevant comment:
https://github.com/databricks/cli/pull/2432#discussion_r1982884235

## Tests
Unit tests.
2025-03-10 13:11:24 +00:00
..
config_used.go Move `ConfigUsed` to `libs/command` (#2440) 2025-03-06 17:08:55 +00:00
config_used_test.go Add unit test for `command.ConfigUsed` (#2446) 2025-03-07 11:42:43 +00:00
context.go Add library to store cmd-exec-id in context (#2439) 2025-03-10 13:11:24 +00:00
context_test.go Add library to store cmd-exec-id in context (#2439) 2025-03-10 13:11:24 +00:00
workspace_client.go Move `WorkspaceClient` to `libs/command` (#2444) 2025-03-07 16:47:19 +00:00
workspace_client_test.go Move `WorkspaceClient` to `libs/command` (#2444) 2025-03-07 16:47:19 +00:00