Skip to content

Conversation

@httpdss
Copy link
Owner

@httpdss httpdss commented Aug 12, 2025

This PR completes more of #97 (CLI UX and discoverability).

Adds:

  • struct completion install [bash|zsh|fish] (prints enablement steps)
  • Standardized output mode naming across MCP to console|file (default file) with back-compat for files
  • New struct init that writes a basic .struct.yaml including:
    • pre_hooks/post_hooks with echo commands
    • files with a README.md placeholder
    • folders referencing the github/workflows/run-struct workflow at ./

Tests:

  • New unit tests for completion install command
  • New unit tests for struct init creation and skip-if-exists behavior
  • All tests passing locally

Docs:

  • README, CLI reference, and completion guide updated previously
  • MCP integration doc updated to reflect console|file

Refs: #97

…li-reference, completion guide)\n\n- New subcommand: completion install [bash|zsh|fish]\n- Prints exact commands to enable argcomplete completions\n- Docs updated to reference the new command\n\nRefs: #97
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.99%. Comparing base (d7c056a) to head (08f162e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
struct_module/commands/completion.py 83.33% 5 Missing and 3 partials ⚠️
struct_module/main.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
+ Coverage   65.44%   65.99%   +0.54%     
==========================================
  Files          18       19       +1     
  Lines        1285     1335      +50     
  Branches      223      229       +6     
==========================================
+ Hits          841      881      +40     
- Misses        380      387       +7     
- Partials       64       67       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@httpdss httpdss merged commit 77c4f43 into main Aug 12, 2025
5 checks passed
@httpdss httpdss deleted the feat/97-cli-ux-and-discoverability branch August 12, 2025 01:47
@httpdss httpdss changed the title feat(cli): add completion installer and docs updates feat(cli): add completion installer and docs updates + standardize output mode naming Aug 12, 2025
@httpdss httpdss changed the title feat(cli): add completion installer and docs updates + standardize output mode naming feat(cli): add completion installer; standardize output mode; add 'struct init' scaffolder Aug 12, 2025
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