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 option to center all text, and display encryption time by default #89

Closed
wants to merge 3 commits into from

Conversation

bsdayo
Copy link

@bsdayo bsdayo commented Sep 2, 2023

I learned Rust from scratch and implemented the features I mentioned in #88. 😄

There's a breaking change I made, to replace the passphrase field (Passphrase: _____) with encryption time (Encrypted at XXXX) by default. The passphrase field can be restored with -P option.

The reason I made this decision is that I think the vast majority of people don't write their passphrase directly on paper, resulting in wasted space being taken up. If you have any comments about this, please communicate with me.

Options added:

  • -c, --center - Center all text
  • -P, --passphrase-field - Display passphrase field instead of time

Closes #88

@bsdayo
Copy link
Author

bsdayo commented Sep 2, 2023

As a preview:

image

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 60.65% and project coverage change: -3.28% ⚠️

Comparison is base (ab53268) 95.71% compared to head (8c728c3) 92.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
- Coverage   95.71%   92.43%   -3.28%     
==========================================
  Files           7        7              
  Lines         677      701      +24     
==========================================
  Hits          648      648              
- Misses         29       53      +24     
Files Changed Coverage Δ
src/cli.rs 86.20% <50.00%> (-2.69%) ⬇️
src/builder.rs 88.38% <58.49%> (-7.97%) ⬇️
src/main.rs 87.85% <100.00%> (ø)

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

Copy link
Owner

@matiaskorhonen matiaskorhonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for your PR and apologies for the long delay; this has been a rather busy time for me.

Could you please separate out the timestamp implementation from the centering change. Mixing several features into one PR makes this harder to review…

Also, I'm currently reluctant to change the default behaviour so I'd prefer that the defaults wouldn't change, at least for now.

Lastly, are the timestamp and passphrase actually diametrically opposed? It seems to me that someone might want to have both (or indeed neither).

@@ -9,3 +9,4 @@
test-output.json
/visual-snapshots
*.profraw
.idea/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a small thing but editor specific files should be ignored in a global gitignore file and not per-repo.

https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer

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.

Feature Request: Ability to hide "Passphrase: ___" and show time
2 participants