Skip to content

Make pull honor parameters#2

Open
tomascohen wants to merge 4 commits into
masterfrom
issue_1
Open

Make pull honor parameters#2
tomascohen wants to merge 4 commits into
masterfrom
issue_1

Conversation

@tomascohen

Copy link
Copy Markdown
Contributor

No description provided.

kylemhall and others added 3 commits January 7, 2026 14:45
Create pkg/compose package with GetComposeFiles function that builds
a list of compose files based on provided options (debugging, dbgui).

This centralizes the logic for determining which compose files to use,
making it reusable across commands like 'up' and 'pull'.
Replace inline compose file building logic with compose.GetComposeFiles.
This simplifies the code and ensures consistency in how compose files
are selected based on flags.
Replace the filepath.Walk approach that pulled ALL compose files with
selective pulling based on flags (--debugging, --dbgui).

Use 'docker compose pull' instead of pulling individual images, which
is simpler and more efficient.

Now 'adb pull' only pulls images from the base compose file, and
'adb pull --dbgui' pulls base + phpmyadmin images, matching the
behavior of 'adb up'.

This prevents unnecessary image pulls (e.g., phpmyadmin when not needed)
and makes the pull command consistent with the up command.
@tomascohen

Copy link
Copy Markdown
Contributor Author

I tested it on macOS and up works as usual, and pull is more scoped on what it pulls. It honors the parameters, which are also displayed when you use --help

Jacobomara901 added a commit to Jacobomara901/aspen-dev-box-cli that referenced this pull request Feb 9, 2026
Replace filepath.Walk approach that pulled ALL compose images with
selective pulling based on flags (--debugging, --dbgui, --evergreen).

Use 'docker compose pull' via Compose.Pull() instead of pulling
individual images, consistent with the up command pattern.

Adapted from Aspen-Discovery#2 by Tomás Cohen Arazi.
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.

2 participants