databricks-cli/cmd
Serge Smertin a686542b1f
(PoC) `Databricks Labs` command group
Allow for `labs.yml` definition in target repositories:

```
---
name: dbx
context: workspace
description: Databricks CLI extensions
hooks:
  install: install.py
entrypoint: main.py
commands:
  - name: foo
    description: foo command
    flags:
      - name: first
        description: first flag description
      - name: second
        description: second flag description
  - name: bar
    description: bar command
    flags:
      - name: first
        description: first flag description
      - name: second
        description: second flag description
```

and simple command entry points that are aware of both CLI flags and Unified Authentication env variables:

```
import os, sys, json

print(f'host is {os.environ["DATABRICKS_HOST"]}')

payload = json.loads(sys.argv[1])
print(f'[{payload["command"]}]: flags are {payload["flags"]}')

answer = input('What is your name? ')

print(f'got answer: {answer}')

answer = input('Preferences? ')

print(f'got answer: {answer}')
```
2023-08-05 18:06:50 +02:00
..
account Bump OpenAPI specification & Go SDK Version (#624) 2023-08-01 12:33:19 +00:00
api Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
auth Infer host from profile during login (#629) 2023-08-02 09:43:42 +00:00
bundle Add validation for Git settings in bundles (#578) 2023-07-30 12:44:33 +00:00
configure Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
internal (PoC) `Databricks Labs` command group 2023-08-05 18:06:50 +02:00
labs (PoC) `Databricks Labs` command group 2023-08-05 18:06:50 +02:00
root Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
sync Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
version Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
workspace Bump OpenAPI specification & Go SDK Version (#624) 2023-08-01 12:33:19 +00:00
cmd.go (PoC) `Databricks Labs` command group 2023-08-05 18:06:50 +02:00