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

Extend DurationVar() to support days, weeks #329

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

adowair
Copy link
Contributor

@adowair adowair commented Jun 15, 2022

Use the open source package str2duration (which is a wrapper)
around time.ParseDuration, to parse duration args from strings.
This package supports more time formats, including days and weeks.

This closes #328

Use the open source package str2duration (which is a wrapper)
around time.ParseDuration, to parse duration args from strings.
This package supports more time formats, including days and weeks.
@adowair
Copy link
Contributor Author

adowair commented Jun 15, 2022

Thank you @alecthomas for the super quick response. Kingpin's been great to us and I appreciate you popping in to support

@adowair adowair deleted the feat/extend-duration-parse branch June 15, 2022 12:13
jkowalski added a commit to jkowalski/kopia that referenced this pull request Jul 10, 2022
This was caused by a default `-1ns` which is no longer supported
in latest Kingpin.

The effect was that `kopia cache set` without
`--max-list-cache-duration` would fail. Unforutnately test was passing
that flag so it was missed.

This was likely caused by alecthomas/kingpin#329
jkowalski added a commit to kopia/kopia that referenced this pull request Jul 10, 2022
This was caused by a default `-1ns` which is no longer supported
in latest Kingpin.

The effect was that `kopia cache set` without
`--max-list-cache-duration` would fail. Unforutnately test was passing
that flag so it was missed.

This was likely caused by alecthomas/kingpin#329
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.

Expand DurationVar to support days and weeks
2 participants