module Rladr

Constants

VERSION

Public Class Methods

execute(args) click to toggle source
# File lib/rladr.rb, line 6
  def self.execute(args)
    unless args.any?
      puts <<~EOF
      Usage:
        rladr init [basedir]
        rladr new <Free text title>
      EOF

      exit
    end

    case args[0]
    when 'init'
      Rladr::Initializer.execute(args)
    when 'new'
      Rladr::New.execute(args.slice(1, args.length).join(' '))
    end
  end