-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Date-related parameter types #603
Comments
I agree that this is a common use case. I am also willing to contribute, and am curious if the correct route is to submit a PR or create a click-contrib package. |
I have created a repo called |
I think a better path for now would be click-contrib. I can invite either of you as member such that you can create your own repos there (and transfer existing ones). |
@untitaker sounds good. I have created https://github.com/ddaws/click-datetime and will migrate to click-contrib when added. |
Done |
@untitaker should this issue be closed because this functionality is now available via a contrib package? |
Yes, thanks for the reminder. |
@ddaws - thanks for contributing |
@Jaza glad it's useful to you. It is very minimal so please let me know if there is any functionality you would like to see added :) |
I apologize if this is the wrong way to open this up, I went to the IRC channel and posted there but did not really get any response.
Many of the scripts I write have date options, e.g.:
timedelta
snow
/utcnow
I think this would be pretty trivial to add, focused strictly on the built-in
datetime
package. One could take advantage of other date parsing utility libraries, but that would add dependencies that might not be needed by others.I'm willing to make a PR for this, just wanted to get a bit of feedback or a nod before submitting something from left field. Also, if you think simple "DateType" support would be better as a
click-contrib
package, and I'll go that route.The text was updated successfully, but these errors were encountered: