-
Notifications
You must be signed in to change notification settings - Fork 3
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
CSV support #5
CSV support #5
Conversation
Assigning to you @kapin |
when :md | ||
UI.puts "* [#{pod[:name]} - #{pod[:version]}](#{pod[:homepage]}) [#{pod[:license][:type]}] - #{pod[:summary]}" | ||
when :csv | ||
UI.puts "#{pod[:name]}, #{pod[:version]}, #{pod[:homepage]}, \"#{pod[:summary]}\", \"#{pod[:license][:type]}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legit point, that was me trying to read it better, but it's not legit CSV
I'll take a proper look later tonight |
@@ -15,14 +15,18 @@ class PodfileInfo < Command | |||
def self.options | |||
[ | |||
["--all", "Show information about all Pods with dependencies that are used in a project"], | |||
["--md", "Output information in Markdown format"] | |||
["--md", "Output information in Markdown format"], | |||
["--csv", "Output information in Markdown format"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should read in CSV format
Just the one comment otherwise LGTM and I'll update the gem when I get home |
Ping @orta |
oops, sorry sure :D |
Done |
I'll update the gem tonight |
Adds an option for outputting as CSV.
Considering this does everything it is set out to do, I've moved it to
1.0.0
too. No need for super low releases when it fits its scope correctly.