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

Add operable:count command #1398

Merged
merged 1 commit into from
Sep 15, 2017
Merged

Add operable:count command #1398

merged 1 commit into from
Sep 15, 2017

Conversation

nmohoric
Copy link
Member

@nmohoric nmohoric commented Aug 28, 2017

First attempt at a count command.
Mostly just took what was already in mix/max and changed it slightly.

Not sure if I'm totally on board with the current state.
If you pass in something like:
seed '[{}]' | count
It will return 0, due to how Cog passes in the cog_env param (otherwise, just running count would result in a 1).

At the moment there are no error cases.

Thoughts/suggestions appreciated.

This would potentially handle #772

@@ -0,0 +1,72 @@
defmodule Cog.Commands.Count do

Choose a reason for hiding this comment

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

Modules should have a @moduledoc tag.

@nmohoric nmohoric force-pushed the nmohoric/count_command branch from daaba2a to fc216a0 Compare September 3, 2017 18:41
@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/operable/cog/pulls/1398.

@davejlong davejlong merged commit 01cf420 into master Sep 15, 2017
@nmohoric nmohoric deleted the nmohoric/count_command branch December 14, 2017 04:05
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.

2 participants