Class: Tabby::CLI
- Inherits:
-
Thor
- Object
- Thor
- Tabby::CLI
- Defined in:
- lib/tabby/cli.rb
Instance Method Summary collapse
- #create(project = nil) ⇒ Object
- #edit(project = nil) ⇒ Object
- #list ⇒ Object
- #open(project = nil) ⇒ Object
Instance Method Details
#create(project = nil) ⇒ Object
9 10 11 |
# File 'lib/tabby/cli.rb', line 9 def create(project=nil) Tabby::Creator.new(project).run! end |
#edit(project = nil) ⇒ Object
14 15 16 |
# File 'lib/tabby/cli.rb', line 14 def edit(project=nil) Tabby::Editor.new(project).run! end |
#list ⇒ Object
19 20 21 22 23 24 |
# File 'lib/tabby/cli.rb', line 19 def list puts "Tabby Projects" Pathname.glob("#{TABBYDIR}/*.rb").each do |project| puts " - #{project.basename(".rb")}" end end |