Skip to content

Extract container build and container builder as a CLI plugin - #2298

Open
JaewonHur wants to merge 7 commits into
apple:mainfrom
JaewonHur:refactor-build-command
Open

JaewonHur wants to merge 7 commits into
apple:mainfrom
JaewonHur:refactor-build-command

Conversation

@JaewonHur

Copy link
Copy Markdown
Contributor

Important

All commits must be signed and verified. Pull requests containing unsigned or unverified commits cannot be built or merged. See the GitHub documentation for instructions.

For all but trivial fixes, make sure to first create a GitHub issue that concisely describes the bug or desired enhancement as justification for the change. Large PRs with no justifying issue will be closed.

  • Move the shared BuilderStart function to ContainerBuild/Builder+Start.swift
  • Move loadContainerSystemConfig to ContainerAPIClient as keeping it in ContainerCommands introduces a circular dependency when imported by ContainerBuild later.
  • Extract container-build and container-builder to CLI plugins (under Plugins/ContainerBuild and Plugins/ContainerBuilder)
    • Drop --format and --quiet flag in container builder list as those reside in ContainerCommands. Importing those in ContainerBuilder introduces a circular dependency.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

[Why is this change needed?]

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

* Dropped `--format` and `--quiet` arguments as they depend on the
  structs defined in ContainerCommands. Supporting those requires larger
  refactor, which we can do later if it's really needed.
@github-actions github-actions Bot added documentation Improvements or additions to documentation cli labels Sep 22, 2026
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 25.88%
Integration 66.3%
Combined 76.06%

Comment thread docs/command-reference.md
Comment on lines 762 to 766

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should drop these.

CommandGroup(
name: "Image",
subcommands: [
BuildCommand.self,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do the builder and build subcommands show up now? In their own section?

@apple apple deleted a comment from JaewonHur Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants