Sha256: af1772b84c1cdb055ad5e88d29834ff91560cd42e1942af9fefaa6cefb1ec68b
Contents?: true
Size: 762 Bytes
Versions: 3
Compression:
Stored size: 762 Bytes
Contents
require 'evernote2org/enex' require 'optparse' require 'fileutils' module Evernote2org module Cli class << self def start options = build_options! enex = Enex.parse(options[:input]) FileUtils.mkdir_p(options[:output]) enex.export_to(options[:output]) end def build_options! options = {} OptionParser.new do |opts| opts.banner = "Usage: evernote2org -f [.enex file] -o [output.org]" opts.on("-fFILE", "--file=FILE", "input .enex file") do |f| options[:input] = f end opts.on("-oOUT", "--out=OUT", "output directory") do |o| options[:output] = o end end.parse! options end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evernote2org-0.1.3 | lib/evernote2org/cli.rb |
evernote2org-0.1.2 | lib/evernote2org/cli.rb |
evernote2org-0.1.1 | lib/evernote2org/cli.rb |