Skip to content

Conversation

@walker84837
Copy link
Owner

@walker84837 walker84837 commented Apr 8, 2025

  • Add documentation in the README.md.
  • --overwrite flag (Prevent file overwrite errors)
  • ASCII terminal output (Useful for debugging and temporary QR codes)
  • Batch generation (Makes it practical for admins; not intended)

@walker84837 walker84837 added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 8, 2025
This update introduces a modular CLI structure that allows users to
generate QR codes, run Lua scripts, and save settings through
subcommands. The configuration handling has been improved to support
both file and stdin input, allowing users to use piping.

Summary of changes:

- Add support for reading configuration from stdin
- Implement `async_save_image` for non-blocking image saving
- Improve logging for better debugging and user feedback
- Refactor CLI argument parsing to use subcommands
- Enhance documentation for configuration functions
- Remove deprecated test cases and clean up code
Move SUPPORTED_FORMATS constant to module scope in `image_ops.rs` to
avoid redefining it within `save_image`, and replace `PathBuf` with
`Path` for cleaner and more idiomatic API design. This improves
consistency across the module and simplifies path handling.

Simplify the CLI `about` text in `main.rs` to make the tool’s purpose
clearer and reduce verbosity in help messages.

Add minor formatting polish in `qr_generator.rs` for readability by
adding a blank line after QR code rendering.
- Replace the email address with the Matrix handle
  `@winlogon.exe:matrix.org` in CODE_OF_CONDUCT.md.
- Remove the redundant `std::io` import and use a direct `io::Error`
  alias in error.rs
- Introduce FileExists variant in Error enum with proper error message
- Extende save_image signature to accept an overwrite flag
- Change save_image to return Error::FileExists with already-existing
  files
- Update logging statements to use display() and interpolated strings
  for clearer output
- Add overwrite CLI option (--overwrite) to `Generate` command and
  propagated it through QrCodeOptions
- Adjust QrCodeOptions struct to include overwrite
- Refactor imports and minor formatting improvements across modules
@walker84837 walker84837 merged commit dcea385 into main Nov 23, 2025
3 checks passed
@walker84837 walker84837 deleted the improve-code branch November 23, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants