1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-29 10:36:48 +02:00
muflax65ngodyewp.onion/commands/last.rb
muflax 1b781a23f6 transition complete
* word count
* categories in nav-bar
* next / prev item
* robots.txt (including sitemap)
* many minor tweaks
2012-04-18 23:06:03 +02:00

18 lines
322 B
Ruby

usage 'last'
summary 'open last page'
description 'Opens last page in Emacs.'
module Nanoc::CLI::Commands
class Last < ::Nanoc::CLI::CommandRunner
def run
page = daily_logs.last
puts "editing: #{page}..."
system "emacs-gui #{page}"
end
end
end
runner Nanoc::CLI::Commands::Last