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

Fix pod search when the silent flag is enabled #1627

Merged
merged 4 commits into from
Dec 2, 2013
Merged

Fix pod search when the silent flag is enabled #1627

merged 4 commits into from
Dec 2, 2013

Conversation

joshkalpin
Copy link
Member

Fixes #1431. Not sure if this is the best way to fix it, but I don't see why search would ever need a silent flag anyway.

@alloy
Copy link
Member

alloy commented Nov 28, 2013

I think this is acceptable, but it would be nice to remove the option from the options list too. E.g. something like:

      def self.options
        [
          ["--full",  "Search by name, summary, and description"],
          ["--stats", "Show additional stats (like GitHub watchers and forks)"],
          ["--ios",   "Restricts the search to Pods supported on iOS"],
          ["--osx",   "Restricts the search to Pods supported on OS X"]
        ].concat(super.reject { |option, _| option == '--silent' })
      end

(In the block parameter list, the _ parameter would be the option description, I usually use _ to signify it’s not relevant to what the block does.)

@fabiopelosin
Copy link
Member

Looks great to me. We need to fix the validation on Travis and then we can merge this.

@fabiopelosin
Copy link
Member

Opss missed @alloy's comment which makes a lot of sense.

@joshkalpin
Copy link
Member Author

@alloy I didn't even know you could do that.

Boom

@joshkalpin
Copy link
Member Author

@irrationalfab and @alloy if it looks good I'll merge :)

@alloy
Copy link
Member

alloy commented Dec 2, 2013

@alloy
Copy link
Member

alloy commented Dec 2, 2013

👍

joshkalpin pushed a commit that referenced this pull request Dec 2, 2013
Fix `pod search` when the silent flag is enabled
@joshkalpin joshkalpin merged commit 1e8c831 into CocoaPods:master Dec 2, 2013
@fabiopelosin
Copy link
Member

👍

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.

pod search gives no output when 'silent' config is true
3 participants