lib/repl.rb in runeblog-0.0.98 vs lib/repl.rb in runeblog-0.0.99
- old
+ new
@@ -18,10 +18,22 @@
check_empty(arg)
output RuneBlog::VERSION
return @out
end
- def cmd_browse
+ def cmd_config(arg)
+ check_empty(arg)
+ dir = @blog.view.dir
+ items = ["publish",
+ "custom/blog_header.html",
+ "custom/blog_trailer.html",
+ "custom/post_template.html"]
+ puts "\nEdit which file?" # FIXME use @out for testing later
+ fname = dumb_menu(items)
+ system("#{@blog.editor} #{dir}/#{fname}")
+ end
+
+ def cmd_browse(arg)
reset_output
check_empty(arg)
url = @blog.view.publisher.url
# FIXME Bad logic here.
if url.nil?