Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: --dry-run command & verbose logging #139

Merged
merged 141 commits into from
Feb 14, 2025
Merged

Add: --dry-run command & verbose logging #139

merged 141 commits into from
Feb 14, 2025

Conversation

BrianHenryIE
Copy link
Owner

@BrianHenryIE BrianHenryIE commented Jan 15, 2025

strauss --dry-run should print to console the changes that might be made, and not modify any files

This PR has added a FileSystem class and all file system operations will go through it, allowing a transparent cache of file modifications in a ReadOnlyFileSystem class, and also provides a nice place to protect against unintentional modification/deleting of files that are symlinked into a project.

TODO:

Info logging added:

  • load config
  • DependenciesEnumerator
  • FileEnumerator
  • FileCopyScanner
  • Copier
  • FileSymbolScanner
  • Prefixer
  • Licenser
  • Autoload
  • Cleanup

Debug logging added:

  • load config
  • DependenciesEnumerator
  • FileEnumerator
  • FileCopyScanner
  • Copier
  • FileSymbolScanner
  • Prefixer
  • Licenser
  • Autoload
  • Cleanup

CLI switches

  • --dry-run
  • --info display info messages
  • --debug display debug messages
  • --silent

@BrianHenryIE BrianHenryIE changed the title Add/dry run command Add: --dry-run command & verbose logging Jan 15, 2025
@BrianHenryIE BrianHenryIE marked this pull request as ready for review February 14, 2025 05:00
@BrianHenryIE BrianHenryIE merged commit e8ec696 into master Feb 14, 2025
8 checks passed
@BrianHenryIE BrianHenryIE deleted the add/dry-run branch February 16, 2025 06:41
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.

1 participant