Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCLI version #41
Comments
This comment has been minimized.
This comment has been minimized.
|
Counter-proposal: Let's call it |
This comment has been minimized.
This comment has been minimized.
clarcharr
commented
Mar 30, 2018
|
Counter-counter-proposal, it can count UTF-8 chars too. |
This comment has been minimized.
This comment has been minimized.
|
Is there really a need for a better |
This comment has been minimized.
This comment has been minimized.
clarcharr
commented
Apr 2, 2018
|
@Veedrac not really, but it's still a cool thing to make |
This comment has been minimized.
This comment has been minimized.
|
So I think we'd want to use the glob crate for file retrieval. We should accept two arguments: |
This comment has been minimized.
This comment has been minimized.
|
Thanks to Freaky for making this! |
Veedrac
closed this
Jan 8, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clarcharr commentedMar 29, 2018
Considering how we have projects like ripgrep, exa, and fd which aim to oxidise common shell utils, it would be great to create an alternative to the wc command that uses bytecount (I vote to name the binary ct, short for count).
Considering how the hard work has already been done for the actual counting, all that really would have to be done is parse command-line arguments with clap or similar. While we don't have an actual "word" counting functionality, 99% of the time I see
wcis viawc -lanyway, and it seems pretty straightforward to make a binary that will do this with bytecount.