README.md in wassup-0.2.0 vs README.md in wassup-0.2.1

- old
+ new

@@ -7,36 +7,36 @@ **Wassup** is a scriptable terminal dashboard. Configure panes and content logic in a `Supfile` and then run `wassup`. <hr/> -https://user-images.githubusercontent.com/401294/144465499-a8903d4c-f003-4550-b47c-f70c17cc02d8.mov +https://user-images.githubusercontent.com/401294/145632767-d75a8244-b68f-4838-8ff4-4017ba0c1ed2.mov ## Example `Supfile` ```rb require 'json' require 'rest-client' -add_pane do |pane| - pane.height = 0.5 - pane.width = 00.5 - pane.top = 0 +add_pane do |pane| + pane.height = 0.5 + pane.width = 0.5 + pane.top = 0 pane.left = 0 pane.highlight = true pane.title = "Open PRs - fastlane/fastlane" pane.interval = 60 * 5 - pane.content do + pane.content do |builder| resp = RestClient.get "https://api.github.com/repos/fastlane/fastlane/pulls" json = JSON.parse(resp) json.map do |pr| - display = "##{pr["number"]} pr["title"]" - - # First element is displayed - # Second element is passed to pane.selection - [display, pr["html_url"]] + display = "##{pr["number"]} #{pr["title"]}" + + # First argument is displayed + # Second argument is passed to pane.selection + builder.add_row(display, pr["html_url"]) end end pane.selection do |url| `open #{url}` end