Class: Tabby::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tabby/cli.rb

Instance Method Summary collapse

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

#listObject



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

#open(project = nil) ⇒ Object



4
5
6
# File 'lib/tabby/cli.rb', line 4

def open(project=nil)
  Tabby::Runner.new(project).run!
end