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

Support day and week in duration parsing #87

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

robherley
Copy link
Owner

Closes:

tl;dr I just yoinked the time.ParseDuration from the stdlib and added some more units like 1w for one week (168 hours) and 1d for one day (24 hours)

now you can do something like:

echo "hello world" | ssh snips.sh -- -private -ttl 1w2d

cc @benwaffle

@benwaffle
Copy link

nice to know I can do -ttl 1w3ns

@robherley robherley merged commit 59e58f8 into main Aug 4, 2023
5 checks passed
@robherley robherley deleted the robherley/more-dur-parse branch August 4, 2023 12:56
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

2 participants