Skip to content

feat(cli): auto-load in-development package for docs/pkg src - #212

Merged
gadenbuie merged 2 commits into
mainfrom
feature/btw-cli-auto-dev-load
Aug 13, 2026
Merged

feat(cli): auto-load in-development package for docs/pkg src#212
gadenbuie merged 2 commits into
mainfrom
feature/btw-cli-auto-dev-load

Conversation

@gadenbuie

Copy link
Copy Markdown
Collaborator

Summary

btw docs and btw pkg src commands now detect a package under development in the current directory (or its pkg-r/, R/ subfolder) and load it with pkgload::load_all() before running the command, so results reflect uncommitted local changes instead of the installed version. Detection matches the DESCRIPTION Package: field against the requested package name; pass --no-dev to skip this and use the installed package instead.

Verification

From a package's root directory, with local changes not yet installed:

btw pkg src get mypackage my_function

This picks up the in-development source. Passing --no-dev falls back to the installed package's source.

Detects a package under development in the current directory (or
pkg-r/, R/ subfolders) and loads it with pkgload before running
`btw docs` or `btw pkg src` commands, so results reflect uncommitted
local changes. Pass --no-dev to disable.
@gadenbuie
gadenbuie marked this pull request as ready for review August 13, 2026 18:03
@gadenbuie
gadenbuie merged commit d11591b into main Aug 13, 2026
9 checks passed
@gadenbuie
gadenbuie deleted the feature/btw-cli-auto-dev-load branch August 13, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant