Skip to content

feat: component create --project flag and next-step hints#934

Merged
chubes4 merged 1 commit intomainfrom
fix/component-create-project
Mar 23, 2026
Merged

feat: component create --project flag and next-step hints#934
chubes4 merged 1 commit intomainfrom
fix/component-create-project

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 23, 2026

Summary

Fixes #900component create now guides the user to attach the component to a project.

Changes

1. --project flag

homeboy component create \
  --local-path /workspace/data-machine-socials \
  --remote-path wp-content/plugins/data-machine-socials \
  --extension wordpress \
  --project extrachill-site

One command creates the homeboy.json AND attaches the component to the project. No second step needed.

2. Next-step hints

When --project is omitted, the output includes a hint field with the exact command to run:

Attach to a project to enable release/deploy:
  homeboy project components attach-path extrachill-site /workspace/data-machine-socials

3. Smart project suggestion

The hint auto-detects which project to suggest by checking if sibling components in the same parent directory belong to a project. For example, if /workspace/data-machine/ is already attached to extrachill-site, a new component at /workspace/data-machine-socials/ will suggest extrachill-site.

4. Output includes project attachment

When --project is used, the output's extra.project_ids field includes the attached project, making it machine-readable.

Testing

  • cargo check passes clean
  • No new dependencies

- Add --project flag to 'component create' for one-step component
  registration + project attachment.
- When --project is omitted, output includes a hint with the exact
  attach command. If a sibling component in the same parent directory
  belongs to a project, suggest that project by name.
- Include attached project_ids in the output extra field.
@homeboy-ci
Copy link
Contributor

homeboy-ci bot commented Mar 23, 2026

Homeboy Results — homeboy

Audit

Failure Digest

Audit Failure Digest

  • Alignment score: 0.921
  • Severity counts: info: 1, unknown: 3, warning: 2
  • Outliers in current run: 3
  • Parsed outlier entries: 3
  • Drift increased: yes
  • New findings since baseline: 1
    1. structural — File has 16 top-level items (threshold: 15) (structural::src/commands/component.rs::HighItemCount)
  • Top actionable findings:
    1. src/commands/component.rs — high_item_count — File has 16 top-level items (threshold: 15)
    2. src/commands/component.rs — intra_method_duplicate — Duplicated block in run — 5 identical lines at line 284 and line 294
    3. src/commands/component.rs — intra_method_duplicate — Duplicated block in shared — 7 identical lines at line 660 and line 675
    4. src/commands/docs.rs — outlier — (outlier)
    5. tests/commands/deploy_test.rs — outlier — (outlier)
All parsed audit findings (6)
1. **src/commands/component.rs** — high_item_count — File has 16 top-level items (threshold: 15)
2. **src/commands/component.rs** — intra_method_duplicate — Duplicated block in `run` — 5 identical lines at line 284 and line 294
3. **src/commands/component.rs** — intra_method_duplicate — Duplicated block in `shared` — 7 identical lines at line 660 and line 675
4. **src/commands/docs.rs** — outlier — (outlier)
5. **tests/commands/deploy_test.rs** — outlier — (outlier)
6. **src/core/engine/undo/snapshot.rs** — outlier — (outlier)
- Full audit log: https://github.com/Extra-Chill/homeboy/actions/runs/23416773472

Autofixability classification

  • Overall: auto_fixable
  • Autofix enabled: yes
  • Autofix attempted this run: no
  • Auto-fixable failed commands:
    • audit
  • Failed commands with available automated fixes:
    • audit

Machine-readable artifacts

  • homeboy-lint-summary.json
  • homeboy-test-failures.json
  • homeboy-audit-summary.json
  • homeboy-autofixability.json

⚡ Scope: changed files only

audit (changed files only)

Auto-refactor

ℹ️ Autofix enabled, but no fixable file changes were produced

⚡ Scope: changed files only

refactor --from all

Tooling versions
  • Homeboy CLI: homeboy 0.85.3+ce5d34f
  • Extension: rust from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v2

Homeboy Action v1

@chubes4 chubes4 merged commit a87c25e into main Mar 23, 2026
4 of 5 checks passed
@chubes4 chubes4 deleted the fix/component-create-project branch March 23, 2026 00:58
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.

component create should guide user to attach component to a project

1 participant