Skip to content

Conversation

@httpdss
Copy link
Owner

@httpdss httpdss commented Jul 3, 2025

Description

This PR adds support for an --output argument to the generate command, allowing users to choose between creating files on disk (file mode, default) or printing the generated file paths and contents to the console (console mode). This is useful for testing and previewing structure generation without making changes to the filesystem.

  • When --output console is set, no files or directories are created. Instead, the tool prints what would be created.
  • When --output file (default), the tool behaves as before, creating files and directories as specified.

Issue Addressed

  • Implements feature request for dry-run/preview mode via console output.

Additional Context

  • Directory creation and file writing are both skipped in console mode.
  • Logging and output are updated to reflect the chosen mode.

Checklist

  • Follows coding standards and contributing guidelines
  • Adds or updates tests as needed
  • Documentation updated if required
  • Manually tested both output modes

Please review and provide feedback or merge if approved.

@httpdss httpdss added enhancement New feature or request minor labels Jul 3, 2025
@httpdss httpdss self-assigned this Jul 3, 2025
@httpdss httpdss moved this to In Progress in struct-mainboard Jul 3, 2025
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@httpdss httpdss merged commit c8ae940 into main Jul 4, 2025
2 checks passed
@httpdss httpdss deleted the feature/output-argument-console-file branch July 4, 2025 15:32
@github-project-automation github-project-automation bot moved this from In Progress to Done in struct-mainboard Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants