Sha256: 72cedab7c78df9aab90ef346c8c13c085aa0c1312c12d47adc70032509b1aa31

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require 'thor'
require "furichan/furichan_util"

module Furichan
  class CLI < Thor
    include FurichanUtil

    default_command :furichan

    desc 'furichan', "Create file and write about this week's reflection"
    def furichan
      invoke :init
      invoke :reflection
    end

    desc 'init', 'initialize of week setting'
    def init
      #init_branch
      init_file
    end

    desc 'reflection', "write file about this week's furik"
    def reflection
      set_template(create_template)
    end

    desc 'furik', "write stdout this week's furik"
    def furik
      init_furik
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
furichan-0.1.3 lib/furichan/cli.rb