Class: ScDocs::CLI
- Inherits:
-
Thor
- Object
- Thor
- ScDocs::CLI
- Defined in:
- lib/sc_docs/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate(*directories) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/sc_docs/cli.rb', line 19 def generate(*directories) raise "At least one directory is required" if directories.empty? puts "Generating Documentation...\n\n" update_repo(directories) generator(directories).generate end |
#preview(*directories) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/sc_docs/cli.rb', line 29 def preview(*directories) raise "At least one directory is required" if directories.empty? puts "Building Documentation Preview...\n\n" update_repo(directories) with_temp_output{ generator(directories).preview } end |