Improve manpage introduction, add examples to manpage.

Closes #19
This commit is contained in:
Stephen Dolan committed 2012-12-16 17:11:40 +00:00
1 parent 3ae8fb7371
commit b0aa62f2b7
2 files changed
+17

No files matched your search

+6
View File
@@ -81,6 +81,12 @@ task :manpage do
f.puts "### #{entry['title']}\n"
f.puts entry['body']
f.puts ""
(entry['examples'] || []).each do |example|
f.puts " jq '#{example['program']}'"
f.puts " #{example['input']}"
f.puts " => #{example['output'].join(", ")}"
f.puts
end
end
f.puts ""
end