Method: Consular::CLI#list

Defined in:
lib/consular/cli.rb

#listObject



71
72
73
74
75
76
77
78
# File 'lib/consular/cli.rb', line 71

def list
  say "Global scripts available: \n"
  Dir.glob("#{Consular.global_path}/*[^~]").each do |file|
    name  = File.basename(file, '.term')
    title = file_comment(file)
    say "  * #{name} - #{title}"
  end
end