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

feature: support human times for default_time_value and time_delta #1172

Merged
merged 4 commits into from May 26, 2023

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented May 25, 2023

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

This adds support for using human times (e.g. "1s", "20 min") time_delta and default_time_value flags.

Issue

If applicable, what issue does this address?

Closes: #

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

@ClementTsang ClementTsang marked this pull request as ready for review May 25, 2023 04:15
@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.66 ⚠️

Comparison is base (6b9663a) 31.76% compared to head (bed3a6b) 31.11%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1172      +/-   ##
==========================================
- Coverage   31.76%   31.11%   -0.66%     
==========================================
  Files          91       96       +5     
  Lines       15506    16341     +835     
==========================================
+ Hits         4926     5085     +159     
- Misses      10580    11256     +676     
Flag Coverage Δ
macos-12 33.12% <100.00%> (+0.50%) ⬆️
ubuntu-latest 32.67% <100.00%> (?)
windows-2019 33.22% <100.00%> (+0.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/options.rs 80.30% <100.00%> (+4.11%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang ClementTsang merged commit eccaf11 into master May 26, 2023
32 checks passed
@ClementTsang ClementTsang deleted the default_time_humantime branch May 26, 2023 04:42
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.

None yet

1 participant