Class: Source2MD::Cli
- Inherits:
-
Thor
- Object
- Thor
- Source2MD::Cli
- Defined in:
- lib/source2md/cli.rb
Instance Method Summary collapse
- #generate(*files) ⇒ Object
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
Constructor Details
#initialize ⇒ Cli
Returns a new instance of Cli.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/source2md/cli.rb', line 7 def initialize(...) super if [:debug] Source2MD.logger.level = :debug Source2MD.debug = true end Source2MD.xmp_out_exclude = [:xmp_out_exclude] Source2MD.readonly = [:readonly] tp Source2MD.config end |
Instance Method Details
#generate(*files) ⇒ Object
26 27 28 |
# File 'lib/source2md/cli.rb', line 26 def generate(*files) Generator.new(..merge(files: files)).call end |