Sha256: 2731aaad709a16043e98714c5abf4dec428eda29efea693adbcc70d278ae1283
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
# coding: utf-8 # require 'thor' require 'pathname' lib = Pathname.new(__FILE__).dirname.join().expand_path.to_s $:.unshift lib require 'citation' require 'json' module EntryPoint class CLI < Thor include Citation class_option 'f', type: :string, aliases: 'Output format', desc: 'Set outputformat(default: "bibtex")', default: 'bibtex' class_option 'r', type: :boolean, aliases: 'Recursive', desc: 'Turn on recursive mode(default: false)' , default: false desc 'instr', 'set citation string' def instr(s) puts Citation.parse(s, options[:r]).out(options[:f]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citation-0.1.1 | lib/citation/entrypoint.rb |
citation-0.1.0 | lib/citation/entrypoint.rb |