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

cli: add option to read from stdin #151

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Oct 25, 2019

Use the isodatetime command in pipes:

$ echo 2000 | isodatetime - --format '%Y%m%d'
20000101

This makes the isodatetime command a useful CLI adapter.

(would have been useful for a test I'm currently writing)

@oliver-sanders oliver-sanders self-assigned this Oct 25, 2019
@oliver-sanders oliver-sanders added this to the 2.0.2 milestone Oct 25, 2019
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Great idea! 3.5, 3.6, and 3.7 builds passed already on Travis, so +1 🎉

@wxtim wxtim merged commit 75e9c33 into metomi:master Oct 25, 2019
@oliver-sanders oliver-sanders deleted the read-items-from-stdin branch October 25, 2019 13: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.

3 participants