feat(lookml): add single-file push and pull options - #40
Conversation
…LookML operations
There was a problem hiding this comment.
Code Review
This pull request introduces a --version option to the main CLI and adds support for pushing and pulling a single file via a new --file / -f option in the lookml tools. The review feedback highlights critical issues in the single-file implementation: a bug in push where passing a file as the main argument duplicates the directory prefix, a path traversal vulnerability in the push command, and a path resolution/traversal issue in the pull command.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
Adds single-file synchronization support to
lkr tools lookml pushandlkr tools lookml pull.--file/-foptions to both commands.push: Syncs only the specified file and skips remote orphan deletion. Also supports passing a single file path directly as the positional argument.pull: Pulls only the specified file and skips local orphan deletion.--versionoption to CLI.