class CLISplash::Documentation
Thor inherited class for documentation management
Public Instance Methods
readme()
click to toggle source
# File lib/splash/cli/documentation.rb, line 14 def readme filename = search_file_in_gem("prometheus-splash","README.md") if options[:formatted] then content = TTY::Markdown.parse_file(filename) else content = File::readlines(filename).join end pager = TTY::Pager.new pager.page(content) splash_exit case: :quiet_exit end