mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-07-02 10:50:42 +02:00
1b781a23f6
* word count * categories in nav-bar * next / prev item * robots.txt (including sitemap) * many minor tweaks
18 lines
322 B
Ruby
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
|
|
|
|
|