databricks-cli/libs/notebook
Pieter Noordhuis 8f56ca39a2
Let notebook detection code use underlying metadata if available (#1574)
## Changes

If we're using a `vfs.Path` backed by a workspace filesystem filer, we
have access to the `workspace.ObjectInfo` value for every file. By
providing access to this value we can use it directly and avoid reading
the first line of the underlying file.

A follow-up change will implement the interface defined in this change
for the workspace filesystem filer.

## Tests

Unit tests.
2024-07-10 06:37:47 +00:00
..
testdata Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
detect.go Let notebook detection code use underlying metadata if available (#1574) 2024-07-10 06:37:47 +00:00
detect_jupyter.go Abstract over filesystem interaction with libs/vfs (#1452) 2024-05-30 07:41:50 +00:00
detect_jupyter_test.go Detect Jupyter notebook files (#219) 2023-02-21 13:49:01 +01:00
detect_test.go Let notebook detection code use underlying metadata if available (#1574) 2024-07-10 06:37:47 +00:00
ext.go Added `databricks bundle generate job` command (#1043) 2024-01-17 14:26:33 +00:00
fakefs_test.go Let notebook detection code use underlying metadata if available (#1574) 2024-07-10 06:37:47 +00:00