databricks-cli/libs/cmdio
shreyas-goenka ddc0237468
Error out if question prompts are used in json mode (#340)
## Changes
This PR disallows questions in json mode

## Tests
Manually and unit test
```
shreyas.goenka@THW32HFW6T job-output % bricks bundle destroy --progress-format=json
The following resources will be removed:
{
  "resource_type": "databricks_job",
  "action": "delete",
  "resource_name": "foo"
}
Error: question prompts are not supported in json mode
```
2023-04-18 17:13:49 +02:00
..
context.go Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
event.go Move state to event for whether they support inplace progress logging (#339) 2023-04-18 14:20:35 +02:00
logger.go Error out if question prompts are used in json mode (#340) 2023-04-18 17:13:49 +02:00
logger_test.go Error out if question prompts are used in json mode (#340) 2023-04-18 17:13:49 +02:00
message_event.go Log mutator messages using progress logger (#312) 2023-04-18 16:55:06 +02:00