databricks-cli/bundle/resources
Pieter Noordhuis 89ee7d8a99
Add command to open a resource in the browser (#1846)
## Changes

This builds on the functionality added in #1731 that produces a URL for
every resource.

Adds `bundle/resources` package to deal with resource lookups and
command completion. The new functionality is similar to the lookup and
command completion functionality located in `bundle/run`. It differs in
that it doesn't gracefully deal with ambiguous references to resources,
now that we explicitly validate this doesn't occur in the bundle
configuration. It still allows resources to be looked up with their
fully qualified key, `<plural type>.<key>`.

## Tests

* Added unit tests for resource lookup and completion
* Manually confirmed that `bundle open` prompts, accepts a key argument,
and opens a browser
2024-10-24 12:20:33 +00:00
..
completion.go Add command to open a resource in the browser (#1846) 2024-10-24 12:20:33 +00:00
completion_test.go Add command to open a resource in the browser (#1846) 2024-10-24 12:20:33 +00:00
lookup.go Add command to open a resource in the browser (#1846) 2024-10-24 12:20:33 +00:00
lookup_test.go Add command to open a resource in the browser (#1846) 2024-10-24 12:20:33 +00:00