Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Add indication of privacy of project when listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Oct 27, 2010
1 parent 0d8be0a commit 7e8d96a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/relish/commands/projects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def list

def format(response)
json = JSON.parse(response)
json.map {|h| h['project']['handle']}.join("\n")
json.map do |hash|
result = hash['project']['handle']
result << " (private)" if hash['project']['private']
result
end.join("\n")
end

end
Expand Down

0 comments on commit 7e8d96a

Please sign in to comment.