Method: Cheatly::CLI#list
- Defined in:
- lib/cheatly/cli.rb
#list ⇒ Object Also known as: ls
34 35 36 37 38 39 40 41 |
# File 'lib/cheatly/cli.rb', line 34 def list sheets = model.all page unless [:nopaginate] puts "List of available cheat-sheets:" sheets.each do |sheet| puts " #{sheet.title}" end end |