#!/usr/bin/env ruby # encoding: utf-8 require 'markun_core' require 'markun/version' require 'thor' module Markun # = Markun CLI class CLI < Thor class_option :help, type: :boolean, aliases: '-h', desc: 'help message.' class_option :version, type: :boolean, desc: 'version' desc 'execute', 'convert markdown to html with menu-link' def execute Markun::Core.new.execute end desc 'init', 'generate Markunfile' def init Markun::Core.new.init end desc 'version', 'version' def version p Markun::VERSION end end end Markun::CLI.start(ARGV)